Commit Graph

5449 Commits

Author SHA1 Message Date
David Roman
b61d63da94
add missing check when activerecord is enabled (#4138) 2023-09-24 02:19:40 +02:00
Philip Ye
43bcc553fe
Fix typo in document of TaskManager::start() (#4155) 2023-09-21 13:30:52 +02:00
Alessandro Di Nepi
3eb18502e7
Fix platform when building for iPhoneSimulator (#4137)
When building for iPhoneSimulator the parameter to specify the minimum
OS version should be matched.
2023-09-11 13:55:51 +02:00
Zhu Asan
1c6e5aa614
Typo fix in UDPHandler.h (#4111) 2023-08-17 20:27:32 +02:00
Alex Fabijanic
9a734674ed fix(Data::Binder: Skip reset for null Binder #4109 2023-08-15 21:23:54 +02:00
Aleksandar Fabijanic
b90316f949 add test for #4108 2023-08-15 18:29:59 +02:00
Günter Obiltschnig
aabc8907b6
Merge pull request #4088 from Romain-Geissler-1A/fix-typos
Fix typos in #4086 and #4087.
2023-07-18 10:33:44 +02:00
Romain Geissler
5fb67c452a
Fix typos in #4086 and #4087. 2023-07-18 07:30:29 +00:00
Günter Obiltschnig
346ec77dbd
Merge pull request #4087 from Romain-Geissler-1A/remove-different-signedness-comparison-warning
Silence gcc -Wsign-compare warning when instantiating Poco::Dynamic::VarHolder::convertSignedToUnsigned.
2023-07-18 09:21:15 +02:00
Günter Obiltschnig
951ebbf82e
Merge pull request #4086 from Romain-Geissler-1A/remove-aligned-storage
Remove std::aligned_storage as it is deprecated in C++23.
2023-07-18 09:21:04 +02:00
Romain Geissler
615e7773b8
Silence gcc -Wsign-compare warning when instantiating Poco::Dynamic::VarHolder::convertSignedToUnsigned.
/data/mwrep/res/osp/Poco/Foundation/23-0-0-0/include/Poco/Dynamic/VarHolder.h: In instantiation of 'void Poco::Dynamic::VarHolder::checkUpperLimit(const F&) const [with F = signed char; T = unsigned int; typename std::enable_if<std::is_integral<_Tp>::value, bool>::type <anonymous> = true]':
/data/mwrep/res/osp/Poco/Foundation/23-0-0-0/include/Poco/Dynamic/VarHolder.h:361:23:   required from 'void Poco::Dynamic::VarHolder::convertSignedToUnsigned(const F&, T&) const [with F = signed char; T = unsigned int]'
/data/mwrep/res/osp/Poco/Foundation/23-0-0-0/include/Poco/Dynamic/VarHolder.h:799:26:   required from here
/data/mwrep/res/osp/Poco/Foundation/23-0-0-0/include/Poco/Dynamic/VarHolder.h:405:26: error: comparison of integer expressions of different signedness: 'const signed char' and 'unsigned int' [-Werror=sign-compare]
  405 |                 if (from > std::numeric_limits<T>::max())
      |                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-07-18 07:16:24 +00:00
Romain Geissler
d28129cbc4
Remove std::aligned_storage as it is deprecated in C++23.
Instead, replace it with std::max_align_t in the Any implementation, as
really we would like to be able to store any object with any alignment
in the small object optimization case. Typically the size and alignment
of std::max_align_t is 8 or 16 on most platforms. Added a static assert
to ensure that this change doesn't result in wasting more unused memory
in case the size of the storage buffer is smaller than this maximum
alignment (which is right now 64, so shall be ok on all platforms).
2023-07-18 07:05:32 +00:00
Alexander B
bce5f961dd
optimize checkUpperLimit and checkLowerLimit in VarHolder.h avoid (#4072)
compile-time warnings when argument type is float and condition always
true

Co-authored-by: Alexander B <bas524@ya.ru>
2023-07-11 08:08:35 -05: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
Aleksandar Fabijanic
641d29f4ad fix(SecureSocketImpl.cpp): Shutdown TLS1.3 connection #2776 2023-07-11 14:54:44 +02:00
Daniel G
180f9eb9a8
Update ICMPv4PacketImpl.h (#4059)
Fix mingw64 build

#2967
2023-07-11 07:24:31 -05:00
Günter Obiltschnig
da39e3ce70 base class lookup 2023-07-11 08:54:34 +02:00
Günter Obiltschnig
0bf69ab832 fix haveLegacyProvider for OpenSSL < 3 2023-07-11 07:00:35 +02:00
Günter Obiltschnig
b0d7f9bd79 style 2023-07-11 06:47:40 +02:00
Günter Obiltschnig
6356cd22ad
Merge pull request #4027 from Crafty-Codes/fix/function-parameter
CppParser: fix for std::function<void()> parameter
2023-07-11 06:42:56 +02: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
5f17a02548 #3935: The extractor in postgresql drops milliseconds 2023-07-10 21:52:36 +02:00
Günter Obiltschnig
00e157da43 #4014: wrong string offset in HTTPCredentials::isNTLMCredentials 2023-07-10 21:37:45 +02:00
Günter Obiltschnig
15c6631352 #4078: Upgrade bundled SQLite to 3.42 2023-07-10 21:28:24 +02:00
Günter Obiltschnig
64b5a91ca1 #4071: PageCompiler: add referrerPolicy to page directive 2023-07-10 21:27:24 +02:00
Günter Obiltschnig
4c1e83b8e8 Don't throw if OpenSSL legacy provider is not available. Add OpenSSLInitializer::haveLegacyProvider() to check for legacy provider. 2023-07-10 17:02:49 +02:00
Fabio Oberhofer
f6e2524db6 CppParser: fix for std::function<void()> parameter
The parameter was previously seen as a function because of it's
brackets.
2023-07-03 14:16:22 +02:00
micheleselea
ead93baadf
EVPPKey constructor for modulus/exponent (#4025)
* Create EVPPkey from modulus and exponent

Add constructor for creating EVPPkey (RSA) using modulus and exponent

* Add EVPPKey constructor for modulus/exponent

* Add testEVPKeyByModulus

* fix test for mudulus

* Update EVPTest.cpp
2023-06-20 22:46:43 -05:00
Günter Obiltschnig
ade5f83973 recreated project files 2023-06-12 17:42:57 +02:00
Günter Obiltschnig
67d0c05370
Merge pull request #4050 from stkw0/devel
rename arc -> poco_arc
2023-06-12 16:36:48 +02:00
David Roman
922fb39787 rename arc -> poco_arc
Fix #3349
2023-06-12 16:28:20 +02:00
Günter Obiltschnig
a00bfbe89f #4057: ODBC: SQL Anywhere Support (fix) 2023-06-11 09:59:49 +02:00
Stefan Csomor
b391d86502
switching to 64 bit arch for simulator as well (#3009) 2023-06-10 18:13:01 -05: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
Günter Obiltschnig
2a6434a86d Merge branch 'devel' of github.com:pocoproject/poco into devel 2023-06-06 13:13:11 +02:00
Günter Obiltschnig
0a4f64c8d2 #3876, also for SystemConfiguration 2023-06-06 13:12:35 +02:00
Günter Obiltschnig
525e91cb90
Merge pull request #4030 from bas524/socketaddress-by-const
fix #3968
2023-06-06 13:08:15 +02:00
Günter Obiltschnig
8f764e3505 #3880: NetSSL_OpenSSL: Support session resumption with TLSv1.3 2023-06-06 13:06:02 +02:00
Günter Obiltschnig
a9ad113742
Merge pull request #4038 from sersoftin/fix/win-shared-library-error-text
Fixed Poco::format specifier for error code
2023-05-21 09:43:52 +02:00
Sergey Detsina
ed2613dfc5 Fixed Poco::format specifier for error code 2023-05-21 10:40:20 +03:00
Alexander B
69a6ddbd90 fix #3968 Poco::Net::SocketConnector constructor should take SocketAddress by const reference 2023-05-11 14:39:32 +03:00
Alexander B
75b378e540
fix #4005 Poco::Path::getExtension() returns name of the hidden file if no extension is present (#4011) 2023-05-05 11:49:56 -05:00
Alexander B
c7ac8574f8
Complimentary to #3918 (std::*mutex wrapper) (#3954)
* Complimentary to #3918
I think that we can use Poco::Mutex and Poco::FastMutex as wrappers for std::recursive_mutex and std::mutex instead of replacing

For using std::*mutexes switch on cmake-option POCO_ENABLE_STD_MUTEX

* add define POCO_ENABLE_STD_MUTEX to the Config.h
remove empty if-else from CMakeLists.txt
2023-05-05 09:49:06 -05:00
Matej Kenda
971a7cc670
Mongodb op msg database commands fix (#4004)
* * Fix: MongoDB::OpMsgCursor did not handle zero batch size properly: cursor requests failed.
* Improvement: Add emptyFirstBatch to indicate that the size of the first batch shall be zero for performance to get potential error ASAP from the server.

* Poco::MongoDB: Some database commands do not need collection as an argument. An integer "1" is passed instead.
2023-05-05 09:27:42 -05:00
Matej Kenda
9a2c16f55a
MongoDB: add missing name accessor to get database name. (#4020) 2023-05-05 08:33:21 -05:00
Günter Obiltschnig
dd21b48d05
Merge pull request #3999 from vojinilic/fixDeadLockDestructor
Fix hang in destructor
2023-04-20 10:19:26 +02:00
Vojin Ilic
b8d1792fa0 Fix hang in destructor
Consider following situation. A class owns a timer. In destructor of that class we call .cancel() asynchronous on timer before it's destruction.
Now timer is executing cancel in it's own internal thread, while it's doing that destructor of timer is called from owner's destructor. Timer destructor enqueues stop notification. If that enqueue is happening just after while loop from cancel notification, stop notification is gonna be dropped and timer will never stop.
Fix: Add new method in TimedNotificationQueue which will return a notification regardless of the time it needs to be executed.
Get number of pending tasks in the queue. Flush out that many notifications from queue while taking special consideration of pending Stop and Cancel notifications.
Add test for new method in TimedNotificationQueue and fix cancel all tests to actually check if notification got executed.
fixes #3986
2023-04-04 12:08:49 +02:00
vojinilic
687f9fb2f5
Revert "Fix dead lock on Timer destructor (#3987)" (#3994)
This reverts commit 39a8b9a7c7.

Co-authored-by: Vojin Ilic <vilic@nvidia.com>
2023-04-04 00:34:08 -05:00
vojinilic
39a8b9a7c7
Fix dead lock on Timer destructor (#3987)
Consider following situation. A class owns a timer. In destructor of that class we call .cancel() asynchronous on timer before it's destruction.
Now timer is executing cancel in it's own internal thread, while it's doing that destructor of timer is called from owning class. Timer destructor enqueues stop notification. If that enqueue is happening just after while loop from cancel notification, stop notification is gonna be dropped and timer will never stop.

fixes #3986

Co-authored-by: Vojin Ilic <vilic@nvidia.com>
2023-03-30 05:46:03 -05:00
David Hedbor
4cc956483d
Fix thread compilation issues on FreeBSD (#3989)
- Use pthread_set_name_np on FreeBSD 12.
- Implement currentOsTidImpl() using thr_self() on FreeBSD.
2023-03-30 04:49:04 -05:00