Commit Graph

461 Commits

Author SHA1 Message Date
Günter Obiltschnig
d67d2dd76c use same timeout for poll and WSAPoll 2019-06-22 21:30:30 +02:00
Günter Obiltschnig
349af10092 Merge branch 'develop' of github.com:pocoproject/poco into develop 2019-06-22 18:11:14 +02:00
Oliver Hahm
a32f40ae83 Omit ContentLength in WebSocket accept response
According to https://tools.ietf.org/html/rfc7230#section-3.3.2
(see https://stackoverflow.com/a/44553521/8647581 for details)
2019-06-11 15:01:42 +02:00
Günter Obiltschnig
2662fbfd4a merge 5e678b925b and 96a7263219 from poco-1.9.1 2019-06-04 18:51:30 +02:00
Günter Obiltschnig
eb3d20642f added missing #include <windows.h> 2019-05-16 14:53:10 +02:00
Günter Obiltschnig
1a78a72195 fixed warning 2019-05-16 14:40:58 +02:00
Günter Obiltschnig
19d24c9f26 fix for Windows (add #define NOMINMAX) 2019-05-16 14:18:05 +02:00
Günter Obiltschnig
74b8a093f5 WebSocket: allow setting the maximum payload size for receiving frames 2019-05-16 08:44:34 +02:00
Günter Obiltschnig
f1aa15deff merged SSPI NTLM auth support from poco-1.9.1 2019-05-15 16:53:11 +02:00
Günter Obiltschnig
0444a61e53 merge changes from 1.9.1 branch 2019-04-05 13:22:15 +02:00
Günter Obiltschnig
c19ba41063 GH #2549: Fix keepAlive in http client session: left-over _pRequestStream could mess up new request 2019-01-16 11:39:05 +01:00
Günter Obiltschnig
ad0b7ec858 GH #2549: Fix keepAlive in http client session 2019-01-15 21:00:25 +01:00
Joerg-Christian Boehme
a753c65478 Use sockaddr_storage for proper stack aligment (#2523) (#2574) 2019-01-06 17:29:43 +01:00
Günter Obiltschnig
75df77b5df fixed GH #2570: DialogSocket: receiveStatusMessage() - line length limit applies to entire multi-line message 2018-12-19 21:46:14 +01:00
Günter Obiltschnig
7d6565dce0 #2565: HTMLForm: optional enforcement of Content-Length instead of Chunked Transfer-Encoding 2018-12-12 18:11:42 +01:00
Günter Obiltschnig
38e03dadd6 merge #2453 2018-09-04 21:45:38 +02:00
tomaz-beltram
0818365985 Fixed Windows http timeout #2451. (#2452) 2018-09-04 15:20:10 +02:00
fenghao119
9ec9e72626 support unix abstract domain socket address, fix #2042 (#2391)
* support unix abstract domain socket address, fix #2042

* fails on 64-bit osx
2018-07-16 07:23:31 -07:00
proller
af090c8b72 HTTPServerSession: Also set send timeout (#2388) 2018-07-11 07:15:53 -07:00
micheleselea
9887e78b5e FTPClientSession read welcome message with external socket (#2335)
* FTPClientSession read welcome message with external socket

Add method to configure if the FTPClientSession should read welcome message from FTP server when you use external socket. Otherwise you could end up in a desyncronization of FTP commands

* FTPSClientSession constructor FTPS behavior

Add variable in constructor to let you enable or disable FTPS connection

* Get FTPSClientSession back from master

* Support UTF8 filename

Using UTF8 filename cause image loading funtion fail without a transcoding function

* FTP Add function to get welcome message

Add a function to get at application level the FTP Server welcome message

* removed FTPPasswordProvider from FTPSStreamFactory

Removed duplicate FTPPasswordProvider  class from FTPSStreamFactory

* Code Style corrections

No hungarian style
no indent nested namespace
rename mutex
2018-07-10 06:58:16 -07:00
Alex Fabijanic
0084c75471 fix ICMP tests 2018-06-01 13:01:43 -05:00
Alex Fabijanic
45903ed071 SocketNotifier not thread-safe #2345 2018-05-30 19:51:53 -05:00
roccocorsi
2b52f0c500 HTTPClientSession not binding IPv4 source address for proxy connect if IPv6 source address not set #2349 (#2350) 2018-05-28 20:11:48 -05:00
Alex Fabijanic
6b79725d46 resolve some socket inheritance warnings 2018-05-25 16:18:42 -05:00
Alex Fabijanic
08b235cd61 some ICMP/MTU fixes 2018-05-25 16:14:21 -05:00
Alex Fabijanic
ee3c7339c9 NTPClient not checking reply address #2348 2018-05-25 16:14:00 -05:00
Alex Fabijanic
f6737e5e18 fix native receiveFrome() 2018-05-25 16:12:19 -05:00
Alex Fabijanic
1d3e1b2611 add PMTU discovery #2329 (linux) 2018-05-25 16:11:33 -05:00
Alex Fabijanic
096e8c0c67 add UNIX gather/scatter sendto/recvfrom implementations and tests 2018-05-25 16:04:13 -05:00
Alex Fabijanic
59b4799783 handle UDPClient exception 2018-05-25 15:45:41 -05:00
Alex Fabijanic
14d0c15fab gcc fixes 2018-05-25 15:24:23 -05:00
Alex Fabijanic
d32b6aaf3e UDPServer and client #2343 (windows) 2018-05-25 14:53:08 -05:00
Alex Fabijanic
f658eec459 add receiveFrom() with native args 2018-05-25 14:45:10 -05:00
Alex Fabijanic
3df73fed63 enable WSAPoll 2018-05-25 14:41:58 -05:00
Alex Fabijanic
86897db55c add socket gather/scatter capabilities #2330 (win, udp) 2018-05-25 14:41:49 -05:00
Alex Fabijanic
02f2d2a2d6 fix ICMPPacket::errorDescription() call) 2018-05-25 14:34:06 -05:00
Alex Fabijanic
bacdbdb87f add PMTU discovery #2329 2018-05-25 14:21:55 -05:00
Alex Fabijanic
3777bd28b3 lock-order-inversion in SocketReactor #2346 2018-05-23 15:10:40 -05:00
Alex Fabijanic
b55c88fce2 use mutex in reactor 2018-05-23 10:59:10 -05:00
roccocorsi
eba0f763f3 Complete Source IP address binding - combined (#2320)
Fixes for:
- HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271
- HTTPClientSession not supporting binding source address for proxy connect #2270
2018-05-09 07:13:27 -06:00
Marian Krivoš
42ef846651 Fix Visual Studio warnings at level /W4 (#2312)
* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp

* fixexes for Visual Studio and /W4 switch

* Fixed warnings for Foundation module

* Fixed warnings for JSON module

* Fixed warnings for XML module

* Fixed warnings for NET module

* Fix unfixable warning in VarHolder.h

* Fix Typo:

* Fixes for Net

* Fixes for Crypto

* Fixes for NetSSL

* Fixes for Zip

* Fixes for PDF

* Fixes for SQLite

* Fixes for SQLite

* Fixes for SQL

* Fixes for MongoDB

* Fixes for Redis

* Fixes for CppParser

* Fixes for CppUnit

* Fixes for PageCompiler

* Fixes for PostgreSQL

* Fixes for MySQL

* Fixes for SevenZip

* Last Warnings

* Fixes for ODBC

* fix std::type_info include
2018-05-04 08:47:40 -06:00
Aleksandar Fabijanic
685dfab8e7 Revert "HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271 (#2273)" (#2315)
This reverts commit c828d824c3.
2018-05-03 11:43:48 -06:00
roccocorsi
c828d824c3 HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271 (#2273)
* HTTPClientSession not supporting binding source address for proxy connect #2270

* HTTPClientSession to support dual IPv4/IPv6 family when setting source IP address #2271
2018-05-03 11:38:43 -06:00
Aleksandar Fabijanic
4efaa99fff Add WeakRefPtr to Foundation #2246 (#2247)
* Logger & Channel classes now using AutoPtr<Channel> instead of Channel* (API improvement)

* fix CachingChannel

* more fixes

* Configuration: remove raw pointers from interfaces #2077

* Add WeakPtr to Foundation #2246

* Add WeakPtr to Foundation #2246 (buildsystems files)

* Add WeakPtr to Foundation #2246 (x64 VS project files)

* backtrace and Event fixes

* add ordered map

* add ordered set

* add sanitize makefiles

* update RefPtr doc

* fix AtomicCounter includes

* add ordered containers tests

* fix xml test compile error

* remove operator bool rom smart pointers

* Poco::strToInt<> fails for values right above the type's boundary / limit #2250

* add g++ -ftrapv config

* remove Version.h includes (now included from Config.h)

* comment out offending SQLite test (TODO)

* add AtomicFlag and SpinlockMutex

* remove RefCountedObject include from RefPtr and WeakRefPtr mutex template param

* add WeakRef SpinLockMutex threading test

* WeakRefPtr, backtrace, NDC, refcount DC fixes

* SQL fixes

* update RCO documentation

* XML/DOM: Remove raw pointers from public interfaces #2075

* few fixes

* PocoDoc - make logger non-static reference member

* remove path char array initialization

* Fix failing unit test, adding d in debug mode for TestApp and TestLibrary

* fix application config pointer

* fix some crypto warnings

* fix Process tests and consolidate TestApp name building

* define PathImpl::selfImpl for WinCE

* restore WinCE test app name extension

* attempt to passify 32 bit clang

* fix failing Active* tests

* Add POCO_OS_ANDROID support for Path::self()

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* Remove to set LD_LIBRARY_PATH on foundation test

* revert to develop XML

* fix VS150 env not found (hardcode it)

* undef min/max
2018-05-02 16:04:39 -06:00
Aleksandar Fabijanic
77f7c6a9a2 Reactor pollset (#2309)
* SocketAcceptor::setReactor() is broken #2308

* Use PollSet in SocketReactor #2092 (windows tested)

* Use PollSet in SocketReactor #2092 (linux)

* fix reactor tests; add a test

* more test fixes

* fix windows

* minor test fix

* add PollSet::has/empty(); ParallelAcceptor: always use same reactor for a socket, if registered

* clang/gcc fixes

* PollSet behaves differently on windows #2313
2018-05-02 09:55:40 -06:00
micheleselea
19e4a1dc35 Set correct timeout to data socket (#2234)
Set correct timeout settings to data socket as the same value used for control socket
2018-03-20 09:37:31 -06:00
Günter Obiltschnig
9caebba764 RemoteSyslogChannel should allow the RFC 5424 STRUCTURED-DATA field to be set #2173 2018-03-07 07:02:26 +01:00
Lau bakman
7c5f8886d2 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 17:00:50 +01:00
Jörg-Christian Böhme
042ff32424 Add POCO_OS_ANDROID as platfrom definitons (#2186)
* Add POCO_OS_ANDROID as platform definition
2018-03-05 22:02:40 +01:00
Günter Obiltschnig
1e5fcd5920 HTTP Authentication Schemes #2089 2018-03-05 15:33:30 +01:00