Alex Fabijanic
f5ef090721
regen net testsuite vs projects
2018-06-02 21:12:43 +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
Francis ANDRE
4c22b871ae
Use CppUnit as a Poco module: regenerate all VS projects
2018-05-28 23:29:12 +02:00
Francis ANDRE
db5d570f33
Add Poco as prefix of CppUnit import libs
2018-05-28 19:58:05 +02:00
Francis ANDRE
be79688077
Use PocoCppUnit instead of CppUnit
2018-05-25 14:05:00 +02:00
Alex Fabijanic
2d165fd0f3
compare char* directly, part 2
2018-05-08 14:39:01 -05:00
Alex Fabijanic
70d9352b04
compare char* directly
2018-05-08 14:28:11 -05:00
roccocorsi
5adeb282cd
WebSocketTest.cpp faults reported by valgrind #2323 ( #2324 )
2018-05-08 14:25:23 -05:00
Alex Fabijanic
8f5455717e
fix cherry pick leftover
2018-05-04 13:48:47 -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
f6e6bec32d
minor test fix
2018-05-04 13:34:12 -05:00
Alex Fabijanic
cca65d34a0
fix windows
2018-05-04 13:33:53 -05:00
Alex Fabijanic
47833b6a59
more test fixes
2018-05-04 13:33:34 -05:00
Alex Fabijanic
f0fed91a0e
fix reactor tests; add a test
2018-05-04 13:33:05 -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
Alex Fabijanic
479bde1e46
SocketAcceptor::setReactor() is broken #2308
2018-05-04 13:23:04 -05:00
zosrothko
960ecb38f0
Poco 1.9.1 assert true ( #2255 )
...
* Rename assert by assertTrue
* Update submodules
* Missing assertTrue
* Rename poco_assertTrue to poco_assert
* Rename poco_assertTrue to poco_assert
2018-03-29 11:12:54 -06:00
Conor Burgess
92f963b858
Poco 1.9.1 version of #2088 ( #2219 )
2018-03-13 08:10:21 -06:00
Günter Obiltschnig
41cc2a632e
added structure-data doc
2018-03-07 07:01:01 +01: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
285ac5af5b
fix parenthesis placement
2018-03-05 22:14:14 +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
Günter Obiltschnig
7eb1325bba
style fixes
2018-03-05 15:05:04 +01:00
Jörg-Christian Böhme
181fc0eea3
Fix unit tests for android build
2018-03-04 21:26:08 +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
Joerg-Christian Boehme
9feabc7723
Add android build on travis ( #1981 )
...
* Add build for android in travis CI.
* Fix review findings. Change from __ANDORID__ to POCO_ANDROID
* Add android test
* Fix compile issue after rebase
* Ignore test big ping when its failing
2018-02-26 18:54:40 -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
Günter Obiltschnig
ef19714077
removed useless code
2017-12-22 09:48:33 +01:00
Alex Fabijanic
db414bf6e9
fix NetworkInterface test
2017-12-20 21:05:05 +01:00
Aleksandar Fabijanic
bc5c40fb47
poco-1.8.0.1 project compile error #2055
2017-12-19 10:40:54 +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
2cac517034
style fix
2017-12-11 17:55: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
Scott Talbert
1724e8ba53
Backport patches ( #2006 )
...
* Guard SQLITE_BUSY_SNAPSHOT which is not available in older SQLite releases
When building POCO unbundled with older versions of SQLite (such as on RHEL7)
SQLITE_BUSY_SNAPSHOT is not defined, so #ifdef guard it.
* Some of the samples need to link with PocoJSON
* Build parallelization issues #1730
* Fix building XMLStreamParser with unbundled expat
2017-11-20 09:31:20 -06:00
Guenter Obiltschnig
6fef7a3ae0
fixed a warning
2017-11-10 08:42:31 +01:00
Guenter Obiltschnig
7d4d01e343
GH #1988 : Remove OpenVMS support
2017-11-09 12:42:13 +01:00
zosrothko
bdd371e996
Merge remote-tracking branch 'origin/poco-1.8.0' into poco-1.8.0
2017-11-07 15:05:44 +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
zosrothko
1193c174f6
Merge remote-tracking branch 'origin/poco-1.8.0' into poco-1.8.0
2017-11-02 20:14:30 +01:00
Günter Obiltschnig
7988f58c73
updatd VS project files for PollSet
2017-11-01 11:30:59 +01:00
Guenter Obiltschnig
341aed39fe
add PollSet class (backported from develop)
2017-11-01 11:19:52 +01:00
Francis ANDRE
5591d10a21
Merge remote-tracking branch 'origin/poco-1.8.0' into poco-1.8.0
2017-10-31 18:11:51 +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
zosrothko
f2e58c17e8
Add Gradle build scripts.
2017-10-31 09:07:53 +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
5bb26f8ce5
fix warning
2017-10-24 19:50:42 -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
8b52be675b
remove obsolete VMS and VxWorks build system support
2017-09-09 11:15:29 +02: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
Guenter Obiltschnig
f10d3a28f3
added Visual Studio 2017 project files
2017-02-20 16:20:16 +01:00
Christopher Baker
e85aa902f9
Fixed position of scope parameter. Fixes #1552
2017-02-20 09:28:53 +01:00
Guenter Obiltschnig
8ba4cdc47e
fix incorrect auto_ptr usage in testsuite
2017-02-18 07:03:31 +01:00
Guenter Obiltschnig
4b9e9c44b3
fixed test due to changed URI::encode() behavior
2017-02-17 13:41:43 +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
Guenter Obiltschnig
0a0dae07a4
fix error introduced in last commit in SocketAddressImpl
2017-02-15 09:56:30 +01:00
Guenter Obiltschnig
5692187d2d
minor fixes, mostly style and documentation
2017-02-15 09:52:58 +01:00
Guenter Obiltschnig
84feb7f35a
get network interface type from /sys/class/net as well
2017-02-13 18:51:07 +01:00
Guenter Obiltschnig
91211c7cd1
added workaround for Linux systems that don't have <linux/if_packet.h>
2017-02-13 18:29:54 +01:00
Guenter Obiltschnig
46cb6afea5
detect malformed MIME messages earlier
2017-02-12 15:44:27 +01:00
Guenter Obiltschnig
a401d22a28
fixed GH #1570 : IPv6AddressImpl::toString() returns wrong output for IPv6 address "::"
2017-02-11 19:01:12 +01:00
Guenter Obiltschnig
186e89923a
style fixes and SolarisStudio support backported from develop
2017-01-25 11:07:51 +01:00
Guenter Obiltschnig
f6d8d0e10a
fix a potential DoS (through memory exhaustion) by restricting HTML form field name and value sizes
2017-01-24 13:14:05 +01:00
Guenter Obiltschnig
4392f13b9c
fix potential DoS vulnerability (through memory exhaustion) by restricting maximum line length
2017-01-24 13:13:13 +01:00
Guenter Obiltschnig
3577724efd
fix a potential DoS vulnerability by restricting the length of the HTTP chunk size in chunked transfer encoding
2017-01-24 13:11:41 +01:00
Guenter Obiltschnig
65626774e1
fixed GH #1212 : Lost WebSocket Frames after Client Websocket Handshake is complete
2017-01-12 15:59:15 +01:00
theAirC
f9e6b51a72
Detection of closed websocket connection
...
When the websocket connection is closed, a non-empty frame (n>0) may be received with FRAME_OP_CLOSE flag bit set.
Tested with chrome 54.0.2840.99 ; after establishing the websocket connection, if the connection is not closed by javascript and the tab is closed, a frame of length n=2 is received with FRAME_OP_CLOSE flag set.
2016-12-08 21:10:35 +01:00
vm2mv
2fbf87c518
* Net: fixed adding content to mail message when content-disposition is empty
2016-11-22 14:30:27 +03:00
vm2mv
b42d5b4fb8
* Net: fixed adding content part to mail message with empty content-disposition
2016-11-21 11:49:49 +03:00
Guenter Obiltschnig
3bd6689751
fixed GH #1472 : HTTP(S)StreamFactory should send a User-Agent header
2016-10-26 12:58:52 +02:00
Guenter Obiltschnig
a8502dcccf
another fix for GH #1458 - handle case when all sockets are invalid
2016-10-18 18:13:52 +02:00
Guenter Obiltschnig
69d632810e
fixed GH #1458 : always pass 1 to epoll_create()
2016-10-17 17:59:09 +02:00
root
895c3dfcd5
use std::unique_ptr instead of std::auto_ptr with C++11+ compilers to prevent std::auto_ptr deprecation warnings
2016-10-14 11:49:45 +02:00
Guenter Obiltschnig
12fc175b5a
fixed warnings reported by GCC 6.2
2016-10-14 10:27:44 +02:00
Guenter Obiltschnig
946e00b77d
fix for GH #1449 : you can now compile Net with -DPOCO_SOCKETADDRESS_DONT_PREFER_IPV4 to prevent SocketAddress from preferring IPv4 over IPv6 addresses
2016-10-10 19:14:01 +02:00
Guenter Obiltschnig
5eab5f1144
improved EchoServer error handling
2016-10-07 22:02:57 +02:00
Guenter Obiltschnig
9b10c24b61
fixed bad disconnect handling in onSocketReadable
2016-10-07 21:54:20 +02:00
Guenter Obiltschnig
b5036266be
backported #1445 : Use stable_sort to preserve order of IP addresses from DNS
2016-10-05 09:23:02 +02:00
Guenter Obiltschnig
c716239c22
fixed uninitialized member in ctor
2016-09-26 17:48:09 +02:00
Guenter Obiltschnig
cb2537b343
fixed uninitialized _encoding member
2016-09-26 17:31:29 +02:00