Commit Graph

652 Commits

Author SHA1 Message Date
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
Guenter Obiltschnig
e6034908c1 code cleanup; fixed some issues reported by Klocwork 2016-09-26 17:19:55 +02:00
Guenter Obiltschnig
7c37f18f84 fixed some warnings and minor issues detected by clang-analyzer 2016-09-13 11:37:12 +02:00
Guenter Obiltschnig
909c06ac6c giving up on strerror_r 2016-09-08 10:12:54 +02:00
Guenter Obiltschnig
ed88e8d46d fixed strerror_r issue 2016-09-08 09:38:06 +02:00
Guenter Obiltschnig
7a2fac3351 close fd before assert 2016-09-06 16:12:53 +02:00
Guenter Obiltschnig
192a5f179f fixed some warnings 2016-09-06 15:49:39 +02:00
Guenter Obiltschnig
7ea6d08907 fixed GH #1316: Empty SocketReactor never sleeps 2016-07-18 18:55:07 +02:00
Guenter Obiltschnig
65abed223d fixed GH #1235: Poco::Net::HTTPClientSession::sendRequest() should also handle HTTP_PATCH 2016-04-11 10:44:08 +02:00
Guenter Obiltschnig
324e04e568 prevent TCPServer thread from stopping of poll() throws (due to resource issues) 2016-03-05 14:40:34 +01:00
Guenter Obiltschnig
15d1d0f1a2 build fixes 2016-03-05 14:29:34 +01:00
Guenter Obiltschnig
6c66d0b49e fix leap year issues in testsuites 2016-02-29 10:18:11 +01:00
Guenter Obiltschnig
1a8479f7ea remove DatagramSocket Unbound constructor 2016-02-29 10:17:30 +01:00
Günter Obiltschnig
3d1a094725 Merge pull request #1026 from zosrothko/Cygwin
Fixes for producing the poco-1.6.2 release on a Cygwin x86 platform
2016-02-28 15:29:08 +01:00
Guenter Obiltschnig
5dd09c1046 fixed #848: MailMessage::_encoding is not set when retrieving plain/text message 2016-02-28 14:35:13 +01:00
Guenter Obiltschnig
4f7b7a7734 fixed #892: DatagramSocket is ipv4 by default (added new constructors for creating an unconnected and unbound DatagramSocket or MulticastSocket) 2016-02-28 00:36:40 +01:00
Guenter Obiltschnig
fa4e739860 cleanup 2016-02-27 22:10:39 +01:00
Guenter Obiltschnig
d33b102259 fixed GH #696: bug in parsing name of attachment 2016-02-27 22:04:54 +01:00
Aleksandar Fabijanic
ee9b2003ba Wrong error code if Sec-WebSocket-Accept header field missed or value wrong #1120 2016-02-27 17:00:49 +01:00
Guenter Obiltschnig
1cbaf38bbc fixed an issue with DELETE in persistent connections 2016-02-17 20:32:19 +01:00
Guenter Obiltschnig
a0f797203e GH #1087: prevent line breaks in base64-encoded creds 2015-12-16 09:24:10 +01:00
Guenter Obiltschnig
899e5084e9 SMTPClientSession: added support for XOAUTH2 authentication 2015-12-15 10:14:41 +01:00
FrancisANDRE
9e33079bcb Add missing PocoJSON dependency.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-17 10:32:39 +01:00
Guenter Obiltschnig
13b34666d9 add HTTP/1.1 version to HTTPRequest for client WebSocket, as this is required for most servers 2015-10-01 19:31:16 +02:00
Guenter Obiltschnig
bcead85c25 remove GCC_DIAG_OFF 2015-09-30 12:16:09 +02:00
Guenter Obiltschnig
e25a17030d integrated CMake improvements from develop (GH #946) 2015-09-26 11:11:23 +02:00
Guenter Obiltschnig
4e375945f9 fix: need an implementation of available() for WebSocketImpl 2015-09-18 22:42:49 +02:00
Guenter Obiltschnig
89816c0ea2 HTTPSessionInstantiator: respect global proxy config 2015-09-17 11:56:28 +02:00
Guenter Obiltschnig
86fe3870e7 added constant for HTTP PATCH method 2015-09-16 09:30:10 +02:00
Guenter Obiltschnig
ca650b83c9 fixed www.appinf.com IP address 2015-08-02 08:51:39 +02:00
Günter Obiltschnig
4f0b692d66 added project and solution files for VS2015 2015-08-01 10:29:32 +02:00
Sascha Zelzer
10425a9556 Do not overwrite CMAKE_PREFIX_PATH in component config files.
This fixes problems when a project adds a directory to
CMAKE_PREFIX_PATH, then calls find_package(Poco ...) and afterwards
calls find_package() for another project located in one of the
directories of the original CMAKE_PREFIX_PATH variable.
2015-02-04 04:35:23 +01:00
Aleksandar Fabijanic
319e2d80b5 POCO1.6 Sample EchoServer BUG #706 2015-02-03 20:18:38 -06:00
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Aleksandar Fabijanic
ed63fbd42c Merge pull request #653 from xantares/mingw_headers
Fix missing windows includes for mingw
2015-01-01 12:37:41 -06:00
Alex Fabijanic
427a9bc4e4 indentation style fix 2015-01-01 12:10:30 -06:00
xantares
bf929f9704 Fix missing windows includes for mingw 2014-12-22 22:08:32 +01:00
Pascal Bach
97ea3ef483 CMake, WinCE: Make samples and tests compile under Windows CE 2014-12-21 16:23:35 +01:00
Pascal Bach
10ef2b2335 CMake: Remove WinDriver usage in tests
Add WinCEDriver to packages supporting it
2014-12-21 16:23:35 +01:00
Guenter Obiltschnig
c85ad9f73d fixed GH #640: can't get socket out of SocketNotification because of const 2014-12-17 00:06:13 +01:00
Guenter Obiltschnig
931a5a5252 Removing support for Visual Studio.NET 2003 and Visual Studio 2005 - it's time to say goodbye to the past 2014-12-15 11:05:13 +01:00
Marian Krivos
1a14ec4578 Change MAX_URI_LENGTH for HTTPRequest from 4 to 16kb - 4kb is too small for todays internet 2014-12-07 20:49:12 +01:00
fbraem
92cca538f8 Internet Explorer sends "Websocket" 2014-11-27 22:49:26 +01:00
Günter Obiltschnig
bc0978d01e fixed GH #471: vs2010 release builds have optimization disabled
fixed GH #616: Visual Studio warning C4244
2014-11-20 21:22:52 +01:00
Guenter Obiltschnig
f9f8d21e0b fixed ParallelSocketAcceptor 2014-11-20 11:36:26 +01:00
Alex Fabijanic
599c4cb3aa Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2014-11-19 22:25:48 -06:00
Alex Fabijanic
fbb18d1aa4 (Parallel)SocketAcceptor ctor/dtor call virtual functions #608 2014-11-19 22:25:28 -06:00
Christopher Baker
ecc3dbb86e Fix for #294. 2014-11-19 16:36:15 -06:00
Guenter Obiltschnig
340594b2ae fixed GH #63: Net::NameValueCollection::size() returns int 2014-11-19 23:26:04 +01:00
Guenter Obiltschnig
674178f587 fixed exception text 2014-11-19 22:56:37 +01:00
Guenter Obiltschnig
bd9d051e46 fixed #468: HTTPClientSession/HTTPResponse not forwarding exceptions 2014-11-19 21:56:42 +01:00
Guenter Obiltschnig
88b203f483 fixed GH #478: HTTPCredentials and HTTPAuthenticationParams support multiple WWW-Authenticate headers 2014-11-19 21:25:36 +01:00
Alex Fabijanic
1919322d00 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2014-11-17 00:40:11 -06:00
Alex Fabijanic
2f20f801c5 Idle Reactor high CPU usage #607 2014-11-17 00:40:00 -06:00
Guenter Obiltschnig
28982f9fcc fixed an issue with proxy connect if global proxy config is used 2014-11-13 06:37:33 +01:00
Guenter Obiltschnig
eb8dce47fe fix #606: HTMLForm constructor read application/x-www-form-urlencoded UTF-8 request body first parameter with BOM in name 2014-11-12 10:33:57 +01:00
Guenter Obiltschnig
781acfa0bd added nonProxyHosts to ProxyConfig to allow bypassing proxy for certain hosts 2014-11-11 22:54:44 +01:00
Guenter Obiltschnig
b576a66c4b documentation update 2014-11-11 17:10:37 +01:00
Günter Obiltschnig
fe3537f49f updated project files 2014-11-11 12:19:14 +01:00
Guenter Obiltschnig
fbcbf708aa added OAuth20Credentials class, some minor OAuth10Credentials fixes 2014-11-11 12:10:53 +01:00
Guenter Obiltschnig
127f7a0ebe testsuite fix 2014-11-10 23:51:28 +01:00
Günter Obiltschnig
af1f5757c3 updated VS project files, added OAuthTestSuite 2014-11-10 23:49:35 +01:00
Guenter Obiltschnig
069b74983d moved TwitterClient to NetSSL samples 2014-11-10 22:56:35 +01:00
Guenter Obiltschnig
362eaad5cb added support for OAuth 1.0A authentication 2014-11-10 22:15:02 +01:00
Guenter Obiltschnig
420c3b55a7 added support for global HTTP proxy configuration 2014-11-09 17:22:10 +01:00
Guenter Obiltschnig
6c37d53b39 minor doc fix (add () to function names to allow PocoDoc to generate links 2014-11-07 09:45:59 +01:00
Günter Obiltschnig
54883cf47f Merge pull request #598 from WesternStar/develop
Correcting erroneous documentation in raw socket and datagram socket
2014-11-07 09:43:47 +01:00
Günter Obiltschnig
478acee545 fixed IPv6 prefix handling issue on Windows 2014-11-07 08:33:30 +01:00
Alvin M.
c0959d4f0f Update DatagramSocket.h
Misspelling
2014-11-06 10:19:23 -05:00
Alvin M.
4aac27b33c Update RawSocket.h
Updating documentation
2014-11-06 10:18:47 -05:00
Alvin M.
7a8051f37d Update DatagramSocket.h
Wording
2014-11-06 10:17:42 -05:00
Alvin M.
7d0d04ea45 Update DatagramSocket.h
Updated erroneous documetation
2014-11-06 10:16:37 -05:00
Günter Obiltschnig
5f380f0b80 Merge pull request #574 from siemens/cmake
Cmake updates
2014-11-06 11:17:45 +01:00
Guenter Obiltschnig
22f3ee8bee style fixes 2014-11-06 11:12:14 +01:00
Günter Obiltschnig
e3a9f61bec Merge pull request #577 from gevpa/bug_ipv6_scopeId
Fix several issues of Poco::IPAddress with supporting for IPv6 format.
2014-11-06 10:56:33 +01:00
Günter Obiltschnig
279370c5cb Merge pull request #591 from karlr42/develop
Fix for issue #588
2014-10-31 19:56:11 +01:00
karlr42
5b646e5b9f Fix description of stopAll's abortCurrent argument. 2014-10-31 17:35:50 +00:00
Paruyr Gevorgyan
cc86efe070 Fix several issues of Poco::IPAddress with supporting for IPv6 format. In current implementation "scope" part of IPv6 is not taken into consideration in several parts of code. 2014-10-17 15:15:07 +02:00
Paruyr Gevorgyan
49e856aa89 Fix parsing issue with IPv6 format: propogating scopeId from IPv6AddressImpl to IPAddress. 2014-10-17 00:59:55 +02:00
Günter Obiltschnig
a6fcc477bd regenerated sample project files, fixed a potential compile error in NetworkInterface when targetting older Windows releases 2014-10-16 14:16:40 +02:00
Pascal Bach
b69fafb84c CMake: Create PocoConfig.cmake to make importable from other CMake projects
The generated PocoConfig.cmake can be used by other CMake projects using find_package.
2014-10-14 17:58:46 +02:00
micheleselea
b7fff590f7 BugFix Missing parenthesis 2014-10-14 13:45:14 +02:00
micheleselea
63b74d4f93 make NetworkInterface working under XP
on >= Vista NetworkInterface works, but if you try under XP you have ifIndex always not setted: if you compile with XP SP1 defines you get code working on >=XP
2014-10-14 09:42:58 +02:00
Günter Obiltschnig
f65d98f9c1 fixed cert chain verification and samples 2014-10-09 23:56:00 +02:00
Günter Obiltschnig
75919178fb fixed a warning 2014-10-07 12:04:03 +02:00
Guenter Obiltschnig
c1976b8fd4 minor cleanup for consistency with 1.4.7 2014-10-06 14:39:54 +02:00
Günter Obiltschnig
6fe2e4fb11 VS project files: do not share intermediate directory between projects in same folder 2014-10-06 13:51:49 +02:00
Guenter Obiltschnig
fb2eba8eac HTTPCookie: fix documentation for max age 2014-10-04 07:40:43 +02:00
Alex Fabijanic
a25877bfc2 - FIFOBuffer drain() problem #552
- StreamSocket::receiveBytes(FIFOBuffer&) and sendBytes(FIFOBuffer&) are
  not thread safe #402
2014-10-03 16:12:42 -05:00
Guenter Obiltschnig
30e26b0d96 improved HTTPClientSession error handling for network errors handling during sending the request 2014-10-02 22:29:25 +02:00
Guenter Obiltschnig
cd67863852 #550 WebSocket fragmented message problem 2014-10-02 20:24:50 +02:00
Guenter Obiltschnig
5822122a12 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2014-09-29 12:17:40 +02:00
Guenter Obiltschnig
ff0e72c187 changed exception text 2014-09-29 12:17:21 +02:00
Günter Obiltschnig
a2617235fe #538 more dtor fixes and some style fixes along the way 2014-09-29 12:09:01 +02:00
Guenter Obiltschnig
135c10c0f5 #538 fixed ParallelSocketReactor dtor 2014-09-29 10:23:41 +02:00