Matej Kenda
0e4eb00ea5
enh(Net): fix a typo
2023-12-04 16:56:12 +01:00
Russell Greene
3ae282db2e
enh(Net): Allow passing raw fd's into ServerSocket ( #4156 )
...
* Allow creating ServerSocket's from fd's
* more sensible approach
* fix whitespace issue
* add test
* build fixes for windows
2023-12-04 16:53:40 +01:00
chrisbednarski
388a3b4010
fix openssl session resumption, add quiet shutdown option, support FTPS with hostname ( #4103 )
2023-11-26 18:12:11 +01:00
Aleksandar Fabijanic
11de40399c
fix(sharedMemory): x64 size error #2976 ( #4295 )
...
* fix(sharedMemory): x64 size error #2976
* chore: add Util dependency to Prometheus samples
* fix(HTTPClientSession): not working with UNIX_LOCAL SocketAddress #2578
* fix(WebSocketTest): supress connection reset exception assertion
* fix(PollSet): wait on premature epoll_wait return; reinforce tests for windows
* fix(build): add DataTest dependency to Makefile
* fix(Task): intermittently hanging test and some other improvements
* fix(Net): PollSet loop; suppress test WebSocket handler shutdown IOExeption
2023-11-26 04:57:39 +01:00
Matej Kenda
daeb9d7301
4254 net message header optional decoding ( #4263 )
...
* GH #4254 : Net::MessageHeader: automatic decoding of header values is made optional (enabled by default).
* GH #4254 : Net::MessageHeader: test for optional automatic decoding of header values
2023-11-13 10:32:12 +01:00
Aleksandar Fabijanic
264eead095
fix(Net): failing testPollNoServer test on windows
2023-11-06 17:08:29 +01:00
Aleksandar Fabijanic
442be3fe57
fix(ProGen): regen CppUnit and Net VS projects
2023-11-06 17:07:32 +01:00
Aleksandar Fabijanic
78234857bf
feat(ProGen): default to c++17
2023-11-05 23:40:47 +01:00
Alex Fabijanic
81d7307fa7
fix(Data):
...
adjust make and CMake for SQLParser and DataTest lib
separate samples from tests in CMake
remove unused StatementImpl from Data testsuite
2023-11-04 23:11:38 +01:00
Alex Fabijanic
e47b92d641
fix(PollSetTest): avoid looping #1320
2023-10-25 13:19:01 +02:00
Aleksandar Fabijanic
47ddacd004
fix(SocketReactor): Protect stop() and wakeUp() from reentrance #4217
2023-10-23 22:42:28 +02:00
Aleksandar Fabijanic
e40f07099d
fix(Net): Add Unix socket support on windows #4208 ( #4209 )
...
* fix(Net): Add Unix socket support on windows #4208
* feat(Net): add abstract local socket support #4208
* fix(PollSet): use localhost socket in PollSet on windows when available #4208
* fix(PollSetTest): comment checking unconnected sockets status (Linux epoll signals them as readable/writable)
2023-10-23 13:33:46 +02:00
Aleksandar Fabijanic
de04b9eac7
fix(ci): PollSetTest::testPollNoServer() #4205
2023-10-21 19:35:47 +02:00
Aleksandar Fabijanic
d640c659a2
PollSet filters out some events #4194
2023-10-21 17:46:45 +02:00
Aleksandar Fabijanic
39e2da88d5
fix(ci): PollSetTest::testPollClosedServer() intermittently fails #4205
2023-10-21 17:44:26 +02:00
Aleksandar Fabijanic
5e1904b5f8
fix: Sync 1.11.-1.12-devel(1.13) #4187
2023-10-16 00:16:06 +02:00
Aleksandar Fabijanic
5103d46e9e
chore(build): add missing distclean
2023-10-15 17:56:48 +02:00
Günter Obiltschnig
53b57c36eb
fix sending trailer: HTTPOutputStream actually shuts down socket, so final \r\n would not be sent. May be related to #4180
2023-10-15 11:20:47 +02:00
Günter Obiltschnig
6385a3c86e
UDPHandler: don't use SpinlockMutex, due to poor performance on single-core systems; make Mutex class a template param instead
2023-10-15 10:19:00 +02:00
Günter Obiltschnig
1b95d53804
#4147 : missing \r\n when setting trailer header in chunked response
2023-10-02 09:55:40 +02:00
Zhu Asan
1c6e5aa614
Typo fix in UDPHandler.h ( #4111 )
2023-08-17 20:27:32 +02:00
haorui wang
1065c6f9ca
chore(Net) : correct spelling, remove some unused codes fix(SocketProactor) : missing adding sock to read pollset fix(DialogServer) : _lastCommands data race ( #3821 )
...
* chore(CppUnit) : style format and revise comment
fix(CppUint) : RepeatedTest compile error
* chore(CppUnit) : remove TestResult forward declare in RepeatedTest.h
* chore(Net) : correct spelling, remove some unused codes
fix(SocketProactor) : missing adding sock to read pollset
fix(DialogServer) : _lastCommands data race
2023-07-11 08:00:17 -05:00
Daniel G
180f9eb9a8
Update ICMPv4PacketImpl.h ( #4059 )
...
Fix mingw64 build
#2967
2023-07-11 07:24:31 -05:00
Günter Obiltschnig
a467fb382d
#4031 : Classes with virtual functions missing virtual destructors (compilation issues)
2023-07-10 22:08:59 +02:00
Günter Obiltschnig
00e157da43
#4014 : wrong string offset in HTTPCredentials::isNTLMCredentials
2023-07-10 21:37:45 +02:00
Alexander Kernozhitsky
c6fd0db4b6
Fix thread counter leak ( #3992 )
...
Cherry-picked from https://github.com/ClickHouse/poco/pull/28 , see the
mentioned PR for more details.
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2023-06-09 22:05:19 -05:00
Alexander B
69a6ddbd90
fix #3968 Poco::Net::SocketConnector constructor should take SocketAddress by const reference
2023-05-11 14:39:32 +03:00
xiao
39a207ce62
Avoid epoll_wait causing the lock to not be released ( #3983 )
...
* Avoid epoll_wait causing the lock to not be released.
* code style
2023-03-27 15:48:54 -05:00
Aleksandar Fabijanic
bcae06f423
3808 icmp statistics ( #3982 )
...
* fix(ICMPClinet): ICMPEventArgs Statistics bugs #3808
* fix(SpinlockMutex): 100 % CPU usage on single-core system #3852
2023-03-22 09:11:13 -05:00
cesar
cee8c96146
Added system_error header to SockerProactor for std::error_code references ( #3883 )
2023-03-18 11:25:07 +01:00
Denis CLAVIER
d4e2e00482
Fix multicast leave group ( #3929 )
...
* Fix multicast leave group
* Add test to join and leave a multicast group
Co-authored-by: Denis CLAVIER <denis.clavier@c-s.fr>
2023-01-24 05:46:10 -06:00
Yevgen Pogribnyi
85c68e7a81
Fix epollfd validity checks when compiling with wepoll ( #3855 )
2023-01-24 01:02:47 -06:00
R. Savchenko
079b50e0c1
Guard NOMINMAX ifdef ( #3906 )
2023-01-24 00:42:43 -06:00
Günter Obiltschnig
99936745e4
#3147 : Reading from request stream hangs when "Transfer-Encoding: chunked" is used
2022-11-10 19:12:58 +01:00
Günter Obiltschnig
894180f943
#3852 : SocketReactor - 100 % CPU usage on single-core system
2022-10-31 14:01:13 +01:00
Alex Fabijanic
dae96c1110
(chore): remove inadvertently added file
2022-10-23 12:34:05 +02:00
Alex Fabijanic
1319d3f7ef
fix(SocketImpl): available() #3834
2022-10-23 12:30:59 +02:00
Hernan Martinez
2effb38396
Progen Net and Net's TestSuite to add ARM64 configurations ( #3828 )
2022-10-23 05:23:34 -05:00
Stephen Balousek
1181fb2485
HTTPServer Applications Slow to Terminate #3796 ( #3797 )
...
- Queue a StopNotification for each thread in the TCPServerDispatcher thread pool. Otherwise, only one thread in the thread pool is terminated.
Signed-off-by: Stephen Balousek <sbalousek@wickedloop.com>
2022-09-11 12:30:02 -05:00
Alex Fabijanic
59eac3f38f
feat: add SocketBufVecSize function
2022-08-10 14:11:25 +02:00
Alex Fabijanic
b134696343
fix(MSVC): PocoNet Project File does not support Visual Studio 2022 #3719
2022-07-28 17:57:06 -04:00
Alex Fabijanic
459f1ea19c
chore(Net): fix some warnings and tests
2022-07-27 16:21:55 -04:00
Alex Fabijanic
3a39fa5319
fix(PollSet): Compiling with clang_cl_x64_x64 on Visual Studio 2022 failed #3716
2022-07-27 16:15:42 -04:00
Aleksandar Fabijanic
86a4f0045e
Fix/posix sleep ( #3705 )
...
* fix(Thread_POSIX): sleep() poor performance #3703
* chore(vscode): add file associations
* fix(TaskManager): waits for all threads in the ThreadPool #3704
* fix(Thread): call std::this_thread::sleep_for() to sleep #3703
* fix(PollSet): wakeup fd is never read #3708
* feat(Thread): Add Thread::set/getAffinity() #3709
* doc(Thread): Thread::trySleep() assertion #3710
* fix(PollSet): wakeup fd is never read (windows portion and some other optimizations) #3708
* feat(SocketReactor): improvements #3713
* chore(ThreadTest): add missing include
* fix(PollSet): wakeup fd is never read #3708
* fix(Any): #3682 #3683 #3692 #3712
* fix(mingw): lowercase winsock2 and iphlpapi to allow cross compile #3711
* feat(Thread): Add Thread::set/getAffinity() #3709
* chore(SocketReactor): one-liners inlined, removed redundant try/catch in dospatch, remove unused onBusy()
* feat(SocketReactor): add socket to ErrorNotification
* fix(SocketReactor): pollTimeout assignment and ConnectorTest leak
2022-07-26 06:54:56 -05:00
Alex Fabijanic
7989d961d6
feat(SocketReactor): post ErrorNotification on exception #3702
2022-07-20 13:47:03 +02:00
Alex Fabijanic
652f79319c
fix(SocketReactor): Remove not useful handlers calls #3701
2022-07-20 12:31:26 +02:00
John Vandenberg
0e6e16645c
Remove trailing whitespace ( #3668 )
2022-07-07 04:18:20 -05:00
Alex Fabijanic
dd0aaa984d
fix(PollSet): PollSet::add()/update() semantics #3661
2022-07-06 14:00:02 +02:00
Alex Fabijanic
adec31e6a8
fix(PollSet): CMakelists.txt
2022-07-06 12:04:05 +02:00
Alex Fabijanic
dd16ab04e7
fix(PollSet): eventfd call arg; add wepoll to CMakelists.txt
2022-07-06 11:58:29 +02:00