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
Alex Fabijanic
a1b21d2a0d
chore(ProGen): MSVC does not properly recognize std version #3665
2022-07-06 11:39:47 +02:00
Alex Fabijanic
31a49c0af2
fix(PollSet): Integrate windows epoll #2091 , #3649
2022-07-06 11:36:16 +02:00
Alex Fabijanic
81696487a0
fix(PollSet): #1459 #3628 #3655 #3661
2022-07-05 20:49:46 +02:00
Aleksandar Fabijanic
840044f69b
Fix/poll set race ( #3630 )
...
* fix(PollSet): PollSet data race #3628
* fix(SocketConnector): SocketConnector test #2875
* fix(PollSet): optimize the amount of locked code; fix and simplify wakeUp logic
* fix(SocketConnectorTest): fix test memleak (data not flowing, handlers not deleted) #2875
* fix(PollSet): clear() and tests
2022-07-05 03:43:19 -05:00
Alex Fabijanic
93e58b4468
fix(Socket): Socket::select EPOLL implementation returns socket in exceptList when empty list is given #3655 ; mark select as deprecated #1459
2022-07-04 22:38:51 +02:00
Alex Fabijanic
672d64bfc5
feat(Socket): add lastErrorDesc()
2022-07-04 22:22:05 +02:00
Günter Obiltschnig
3e4a286c9d
#3658 : Support for chunked transfer encoding trailer
2022-07-04 17:49:52 +02:00
Günter Obiltschnig
06718f49c1
add note regarding receiveFrame with Poco::Buffer
2022-07-03 16:02:45 +02:00
Alex Fabijanic
076cddb465
Merge branch 'devel' of https://github.com/pocoproject/poco into devel
2022-06-29 19:57:03 +02:00