Commit Graph

468 Commits

Author SHA1 Message Date
Günter Obiltschnig
fc0cc6af36 #3381: DNS::hostByAddress not thread-safe 2021-11-05 13:18:06 +01:00
Alex Fabijanic
9155121866 fix(NetworkInterface): Unterminated string possible in NetworkInterfaceImpl::setPhyParams() #3301 2021-06-25 21:31:26 +02:00
Alex Fabijanic
8030564ff5 fix(HostEntry): DNS HostEntry returns multiple entries #3303 2021-06-25 21:05:29 +02:00
Alex Fabijanic
4ec21a62c2 fix(ICMPv4Packet): [asan] Undefined behavior in ICMPv4PacketImpl.cpp #3326 2021-06-25 20:07:55 +02:00
Günter Obiltschnig
22eb76d3ae #3302: MSVC: Poco hides warnings (C4996) for the C++14 attribute [[deprecated]] 2021-06-17 18:20:29 +02:00
Günter Obiltschnig
330bc22b30 #2746, #3169: Fix race condition on TCPServerDispatcher stop 2021-06-15 15:26:26 +02:00
Günter Obiltschnig
59ae91e5ba #3089: HTTPSessionFactory does not support HTTPClientSession::ProxyConfig 2021-06-15 09:45:01 +02:00
Günter Obiltschnig
2f9c7cd6d3 #3219: SMTPClientSession: invalid SMTP command if empty recipients list in MailMessage 2021-06-14 19:13:48 +02:00
Alex Fabijanic
b27f440e36 fix(PollSet): #3248 #3249 2021-05-25 13:56:58 +02:00
Günter Obiltschnig
e4bdfdff0c #3242: RemoteSyslogListener: add reusePort option 2021-04-14 18:50:30 +02:00
Günter Obiltschnig
e4b258765e #3095: Digest proxy authentication does not work in 1.10.1 2021-04-12 20:19:48 +02:00
Günter Obiltschnig
f1c4c9a27d #2993: The Sec-WebSocket-Key of WebSocket is always the same one 2021-04-11 16:56:59 +02:00
Günter Obiltschnig
b30bebffb0 merge WebSocket fixes from devel 2021-04-11 16:46:48 +02:00
Günter Obiltschnig
9f02ea1715 #2783: fix Invalid condition [ICMPv4PacketImpl.cpp:234] 2021-04-11 16:15:02 +02:00
Günter Obiltschnig
aa7667d427 RemoteSyslogChannel/RemoteSyslogListener: add buffer size configuration property 2021-04-11 16:03:08 +02:00
Günter Obiltschnig
b3f75eb850 #2902: [FTPClient] Optimize expression 2020-02-04 10:56:58 +01:00
Günter Obiltschnig
3bdb47ae66 GH #2892: SocketImpl::bind --> bind wrong config 2020-01-25 14:22:27 +01:00
Günter Obiltschnig
d65bf03a83 fixes and improvements to FTP(S)ClientSession 2020-01-23 17:55:30 +01:00
Günter Obiltschnig
878b8bbeca fixes for FTPSClientSession 2020-01-23 13:29:54 +01:00
Günter Obiltschnig
5d481ff493 merge FTPSClientSession from develop-experimental 2020-01-23 11:57:28 +01:00
Günter Obiltschnig
f1fcdffcb5 fixed GH #2863: NetworkInterface::map can fail to reveal some interfaces if an earlier one can not be handled 2020-01-22 13:36:46 +01:00
Günter Obiltschnig
f6dafb437e fixed GH #2843: Poco::Net::MediaType::parse() does not split parameters 2020-01-22 11:56:11 +01:00
Günter Obiltschnig
15fa335343 fixed a crash due to invalid sockaddr cast 2020-01-22 10:59:02 +01:00
Günter Obiltschnig
35d73695f8 fixed GH #2686: Uploads larger than 2GB fail 2020-01-21 21:19:07 +01:00
Günter Obiltschnig
f55c17a295 fixed #2745 2020-01-21 19:59:17 +01:00
Günter Obiltschnig
1bf40a0cd2 merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8 2020-01-09 10:08:09 +01:00
Günter Obiltschnig
4ec5d35060 added support for SameSite cookie attribute 2020-01-04 10:15:41 +01:00
Günter Obiltschnig
9c197e0ed1 finally get rid of std::auto_ptr 2019-12-15 09:40:40 +01:00
Günter Obiltschnig
665a840692 added Poco::Net::escapeHTML() and Poco::Net::EscapeHTMLStream; PageCompiler now supports optional HTML-escaping of <%= %> expressions. 2019-11-20 14:22:41 +01:00
Chris Berry-Porter
8e0a852716 Set timeouts for FTP passive connections
Set send/receive timeouts for FTP passive connections
2019-09-02 10:48:10 +10:00
Günter Obiltschnig
b782d17ced fixed timeout for WSAPoll 2019-06-22 21:29:24 +02:00
Günter Obiltschnig
625dd6b51e backport #2336 2019-06-11 16:07:53 +02:00
Günter Obiltschnig
5e678b925b only auto-authorize if non-empty HTTPCredentials are provided 2019-06-04 18:37:48 +02:00
Günter Obiltschnig
96a7263219 added HTTP*Credentials::empty() and HTTP*Credentials::clear() 2019-06-04 18:33:50 +02:00
Günter Obiltschnig
a7d5d97487 added missing #include <windows.h> 2019-05-16 14:54:19 +02:00
Günter Obiltschnig
dc4d36dad5 fixed warning 2019-05-16 14:40:13 +02:00
Günter Obiltschnig
2086a497f5 fix for Windows (add #define NOMINMAX) 2019-05-16 14:16:09 +02:00
Günter Obiltschnig
16f63eed0a WebSocket: allow setting the maximum payload size for receiving frames 2019-05-16 08:43:46 +02:00
Günter Obiltschnig
a335f6da89 fixes for macOS/Linux 2019-05-15 15:54:10 +02:00
Günter Obiltschnig
e821a2a9f1 added support for SSPI-based NTLM authentication using the credentials of the currently logged in Windows user (Windows only) 2019-05-15 15:43:37 +02:00
Günter Obiltschnig
2e26da9b34 added HTTPClientSession::flushRequest() 2019-04-05 13:00:55 +02:00
Günter Obiltschnig
42cf54b742 fixed NTLM SMTP authentication; added additional check for malformed server challenge to HTTPNTLMCredentials 2019-04-03 15:29:32 +02:00
Günter Obiltschnig
6ec6b58da3 added comment and link to MS-SMTPNTLM 2019-04-02 16:54:56 +02:00
Günter Obiltschnig
fa84db6d65 added NTLM authentication to SMTPClientSession 2019-04-02 16:47:12 +02:00
Günter Obiltschnig
a8bcb214c5 minor refactoring; check server challenge for NTLMv2 support 2019-03-19 08:38:32 +01:00
Günter Obiltschnig
9422825790 fixed c++03 compatibility issue 2019-03-18 19:29:41 +01:00
Günter Obiltschnig
dc5c87c135 fixed warnings 2019-03-18 18:15:10 +01:00
Günter Obiltschnig
0f3f11a3b2 NTLM (proxy) authentication support for HTTPClientSession 2019-03-18 16:58:57 +01:00
Günter Obiltschnig
e3e8c3474b backport #2616: Restore pre-1.8.0 behaviour of Poco::Net::ServerSocket::bind 2019-02-15 20:08:02 +01:00
Günter Obiltschnig
be662f257a GH #2549: Fix keepAlive in http client session: left-over _pRequestStream could mess up new request 2019-01-16 11:37:32 +01:00
Günter Obiltschnig
69fee5d296 #2549: Fix keepAlive in http client session 2019-01-15 20:57:50 +01:00
Günter Obiltschnig
5d3d62bb54 fixed GH #2570: DialogSocket: receiveStatusMessage() - line length limit applies to entire multi-line message 2018-12-19 21:45:17 +01:00
Günter Obiltschnig
db86fec382 #2565: HTMLForm: optional enforcement of Content-Length instead of Chunked Transfer-Encoding 2018-12-12 18:00:58 +01:00
Joerg-Christian Boehme
7fd34b5a62 Use sockaddr_storage for proper stack aligment (#2523) 2018-11-27 08:25:05 -06:00
Günter Obiltschnig
ae9a7368cc backport 89da23d - don't wrap TimeoutException in ICMPException 2018-11-01 11:01:25 +01:00
Günter Obiltschnig
fd57b3b34c backport MultipartSource for MailMessage from develop branch 2018-10-29 13:46:59 +01:00
fenghao119
e7e90e2465 fix: timeout does not work when ftp passive connect (#2463) 2018-09-13 09:09:28 +02:00
Simon Gorše
f59077d0f0 Fixed WebSocket error message formatting. 2018-09-04 21:27:21 +02:00
Alex Fabijanic
b42900ee5b fix for pre-c++11 compilers 2018-09-04 20:14:18 +02:00
tomaz-beltram
f140808fab Fixed Windows http timeout #2451. (#2452) 2018-09-04 15:27:25 +02:00
Aleksandar Fabijanic
c4e676d36d
Feature net udp (#2347)
* add PMTU discovery #2329

* add socket gather/scatter capabilities #2330 (win, udp)

* enable WSAPoll

* add FastMemoryPool

* add receiveFrom() with native args

* allow copying of StringTokenizer

* add AtomicFlag and SpinlockMutex

* update .gitignore

* UDPServer and client #2343 (windows)

* fix warnings

* fix warnings

* regenerate Net VS solutions

* regenerate CppUnit projects/solutions

* clang fixes

* gcc fixes

* try to fix travis

* more travis fixes

* more travis fixes

* handle UDPClient exception

* fix makefiles and init order warnings

* add UNIX gather/scatter sendto/recvfrom implementations and tests

* run travis tests as sudo

* try to run tests as sudo, 2nd attempt

* fix warning

* use mutex in reactor

* lock-order-inversion in SocketReactor #2346

* add PMTU discovery #2329 (linux)

* ICMPSocket does not check reply address #1921

* remove some ignored tests

* add PMTU discovery #2329 (reconcile logic with #1921)

* fix native receiveFrome()

* reinstate ignoring of proxy errors

* add testMTU to ignore list

* add include atomic

* NTPClient not checking reply address #2348

* some ICMP/MTU fixes

* UDPSocketReader cleanup

* resolve some socket inheritance warnings

* add NTP time sync to ignored tests

* SocketNotifier not thread-safe #2345

* prevent x64 samples build attempt for win32

* build TestApp and Library

* fix ICMP tests

* regen VS projects

* regen VS projects and add missing 2012 files

* remove debug prints
2018-06-02 14:02:33 -05:00
Alex Fabijanic
82c88a238c PollSet behaves differently on windows #2313 2018-05-04 13:39:36 -05:00
Alex Fabijanic
2c445f3fb1 clang/gcc fixes 2018-05-04 13:39:14 -05:00
Alex Fabijanic
df46368413 add PollSet::has/empty(); ParallelAcceptor: always use same reactor for a socket, if registered 2018-05-04 13:38:43 -05:00
Alex Fabijanic
ea38cdb740 Use PollSet in SocketReactor #2092 (linux) 2018-05-04 13:32:22 -05:00
Alex Fabijanic
6912384422 Use PollSet in SocketReactor #2092 (windows tested) 2018-05-04 13:31:52 -05:00
Conor Burgess
92f963b858 Poco 1.9.1 version of #2088 (#2219) 2018-03-13 08:10:21 -06:00
Günter Obiltschnig
69588abd71 RemoteSyslogChannel should allow the RFC 5424 STRUCTURED-DATA field to be set #2173 2018-03-07 06:51:39 +01:00
Lau bakman
79532cb172 Use MAX_ADDRESS_LENGTH to determine buffer size
Modify operator>> to use IPAddress::MAX_ADDRESS_LENGTH to determine size
of buf array. This will allow the operator>> to be compiled on platforms
that does not support IPv6.
2018-03-06 11:17:10 +01:00
Günter Obiltschnig
4b50fee50b revert fix for #2088 as it breaks testsuite 2018-03-05 22:13:30 +01:00
Günter Obiltschnig
d0f2253c51 HTTP Authentication Schemes #2089 2018-03-05 15:32:08 +01:00
Conor Burgess
603a6e23da Fix race condition in TCPServerDispatcher.cpp 2018-03-05 15:23:53 +01:00
Joerg-Christian Boehme
73897b4357 Add POCO_OS_ANDROID as platfrom definitons (#2186)
* Add POCO_OS_ANDROID as platform definition

* Ignore test big ping when its failing
2018-02-26 19:18:45 -06:00
Alex Fabijanic
59415a3dbb remove extraneous catch 2018-02-24 08:50:33 -06:00
Günter Obiltschnig
1fdc18d35f don't wrap TimeoutException in ICMPException 2018-02-24 08:39:33 -06:00
Alex Fabijanic
2ff645d598 Run ping with custom data size #1912 2018-02-24 08:39:13 -06:00
Günter Obiltschnig
e5f71bb085 re-add special handling for TimeoutException 2018-02-21 19:12:12 +01:00
Günter Obiltschnig
864d287d94 remove long deprecated flushCache() method 2018-02-17 18:27:02 +01:00
Günter Obiltschnig
c17c569d13 IDN testsuite and fixes 2018-02-17 18:09:19 +01:00
Günter Obiltschnig
c74af100b5 added IDN support to Poco::Net::DNS 2018-02-17 15:48:27 +01:00
Aleksandar Fabijanic
59a6027c0a
Mingw cross-compilation error #2103 2018-01-26 20:11:24 -06:00
Günter Obiltschnig
040d211216 fixed GH #2080: Fix bugs in Poco::Net::Socket::select() for poll() implementation 2018-01-09 10:19:00 +01:00
Alex Fabijanic
2b125e1c4e Poco::Net::NetworkInterface::list does not list inactive interfaces even when explicitly being asked for it #2044 2017-12-19 08:48:48 +01:00
Günter Obiltschnig
98feaa7bb9 fixed GH #2042: Android abstract namespace local socket address 2017-12-18 10:14:09 +01:00
Günter Obiltschnig
a07c33aaae fixed GH #2038: Poco::Net::MultipartWriter::createBoundary() always returns the same string. 2017-12-06 11:10:06 +01:00
Guenter Obiltschnig
6fef7a3ae0 fixed a warning 2017-11-10 08:42:31 +01:00
Günter Obiltschnig
37927faf66
Merge pull request #1971 from Bjoe/remove-soo-in-net
Remove SOO in 1.8
2017-11-07 14:46:17 +01:00
Guenter Obiltschnig
7f17dfcc83 additonal fix for GH #1212: WebSocketImpl::available() now reports number of bytes in internal buffer. 2017-11-07 13:50:30 +01:00
Joerg-Christian Boehme
1ec60225b6 Remove SOO in IPAddress and SocketAddress 2017-11-02 20:54:38 +01:00
Guenter Obiltschnig
341aed39fe add PollSet class (backported from develop) 2017-11-01 11:19:52 +01:00
Guenter Obiltschnig
a460bafa70 merge Unix Domain Sockets support and other changes from develop 2017-10-31 16:53:06 +01:00
Guenter Obiltschnig
d172273a75 remove remaining $Id$ tags from file headers 2017-10-31 16:01:51 +01:00
Alex Fabijanic
57bc179db5 FTPClientSession::close() error? #1880 2017-10-30 11:19:54 -05:00
Alex Fabijanic
1a18621ff8 ifdef auto_ptr 2017-10-24 21:55:33 -05:00
Alex Fabijanic
6b19b56bd8 NTP Packet impl not according to RFC958? #749 2017-10-20 20:43:57 -05:00
Alex Fabijanic
4325a5db12 Internet connection is not available on build servers, making tests fail #1365 2017-10-06 18:19:20 -05:00
Günter Obiltschnig
04e7e04d4d Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
Henry Hu
f64e3d9db0 fix build when using poll 2017-03-06 10:37:35 -05:00
Christopher Baker
e85aa902f9 Fixed position of scope parameter. Fixes #1552 2017-02-20 09:28:53 +01:00
Guenter Obiltschnig
6031e24091 fixed GH #1596: Control reaches end of non-void function in SocketImpl::poll on systems for which POCO_HAVE_FD_POLL is set 2017-02-15 22:27:50 +01:00