Commit Graph

5942 Commits

Author SHA1 Message Date
Andrew Auclair
a82b766628
DateTimeParser Validation and Performance Improvements (#4593) 2024-06-29 22:13:51 +02:00
Günter Obiltschnig
02b59b4d25 fix(Net): #4594: PollSet::poll on Windows always returns immediately after first connection, due to bad event socket implementation 2024-06-26 20:27:06 +02:00
Andrew Auclair
9d739176f6
enh(Cmake) Add CACHE PATH to multi-config output directory variables (#4545)
* Add CACHE PATH to multi-config output directory variables

CACHE PATH should have been added to these as well.

* Adding Config Name to Cache Message

Adding the configuration name to the cache path message that is written to CMakeCache.txt.
2024-06-19 09:34:34 +02:00
Matej Kenda
2681b0a3ac enh(zlib): Upgrade bundled zlib to 1.3.1 (#4585, #4586) 2024-06-18 12:10:27 +02:00
Jouke Witteveen
e00b4de672
Allow ADL for swapping Optional values (#4569)
Some types support being swapped but may not have declared their
std::swap overloads when Poco/Optional.h is first included. This is the
case for instance with

    #include <Poco/Optional.h>
    #include <array>

    using Problematic = Poco::Optional<std::array<int, 42> >;

With an unqualified call to swap, preceded by using std::swap, we allow
argument-dependent lookup to find suitable implementations of swap.
2024-06-17 16:52:49 +02:00
Günter Obiltschnig
c6249d9b3f enh(Net): clear out stored credentials 2024-06-11 12:19:52 +02:00
Günter Obiltschnig
3092ba5455 enh(Foundation): add Poco::secureClear() for securely clearing a string by first overwriting it with zeroes. 2024-06-11 10:42:49 +02:00
Matej Kenda
bc29f30e5c
end(ServerApplication): Add --pid option to ServerApplication on Windows. (#4559) (#4567) 2024-06-02 03:08:18 +02:00
Matej Kenda
cf1a29908a enh(MongoDB): Document::get returns value by const reference instead of creating a copy and few other minor improvements. 2024-05-23 11:46:44 +02:00
Alexander B
4552df2f2e
fix(Logger): Autodetect line number type from __LINE__ (#4553)
MS Visual Studio can use type long for __LINE__ macro when /ZI
compilation flag is used - https://learn.microsoft.com/en-us/cpp/build/
reference/z7-zi-zi-debug-information-format?view=msvc-170#zi-1
This breaks some poco interfaces, for ex. logger
We should fix type for line number
2024-05-15 13:43:24 +02:00
Matej Kenda
ad72b25ace enh: resolve unit test and few other warnings. 2024-05-08 13:25:56 +02:00
Matej Kenda
065f9a0ff9
feature(FileStream): Allow using Poco::FileStream to wrap arbitrary file handles/descriptors as C++ streams (#4424)
* Allow using Poco::FileStream to wrap arbitrary file handles/descriptors as C++ streams (#3444).

* Allow opening a file descriptor/HANDLE as C++ stream.

* FileStream: treat read from closed pipe as EOF.

* chore(Filestream): conde style (naming)

Co-Authored-By: Alex Fabijanic <alex@pocoproject.org>
Co-Authored-By: Matej Kenda <matejken@gmail.com>

* enh(FileStream): make FileIOS::open a virtual function. (#3444)

* test(FileStream): unit test for FileStream::openHandle (#3444)

* Update CONTRIBUTORS.

* test(FileStream): Win32 unit test fix.

* build(CMake): Require policy minimum version 3.15.

---------

Co-authored-by: Daniel Grunwald <grunwald@axivion.com>
Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
2024-05-08 11:53:43 +02:00
Alexander B
1a0355f1b7
fix(Net::MessageHeader): Correct RFC 2047 decoding for two consecutive encoded words (#4542)
* fix bug #4535
RFC 2047 decodeWord

* modify logic
uses separate string which contains simbols between chunks and if this
string contains only space ot \n or \t or \v than trim it
2024-04-29 10:54:23 +02:00
Günter Obiltschnig
6998c66539
Merge pull request #4534 from jeremy-rifkin/main
Remove zero-width space from start of file
2024-04-21 06:54:45 +02:00
Jeremy Rifkin
b1f28c42eb
Remove zero-width space from start of file 2024-04-20 15:42:17 -05:00
Mert Övün
e9f6fc10cc - b master -> -b main 2024-04-18 07:36:25 +02:00
Matej Kenda
f4dba784a4 Update CONTRIBUTING.md for new branching scheme. 2024-04-15 13:11:34 +02:00
Matej Kenda
bd4560123f Sync differences from branch 'master' into 'devel' after release 1.13.3 2024-04-06 10:21:08 +02:00
Alex Fabijanic
534c12415e chore: README 2024-04-03 19:17:40 -05:00
Aleksandar Fabijanic
b41f211ece
2208 merge dnssd (#4479)
* Initial commit

* initial commit

* added README.md

* Update README.md

* Add top level CMakeLists like another project in POCO framework. see #1

* Add CMakeLists to Avahi and Bonjour. (see #1)

* Missing changing in top level CMakeLists correct. (see #1)

* Add samples CMakeLists. (see #1)

* Add temporary cmake find module for Avahi and Bonjour in cmake directory. (see #1)

* Add mandatory requirement diff for POCO framework to DNSSD cmake can be work correctly. (see #1)

* Update README.md

Add cmake build way.

* Update README.md

Minor change.

* Update README.md

Removed ambiguous sentence.

* Moved files

* Add cmake modules

* Add cmake modules

* Remove modules

* Correct linux cmake ci.

* Exclude DNSSD from macos, windows.

* Update CMakeLists.txt

* Remove unused gitignore

* Remove deprecated vs versions

* Add vs160 and vs170 for DNSSD

* Remove deprecated sln

* Revert bad changes

* Revert bad changes

* chore: remove vs90 sln files

* chore: remove vs90 x64 files

* Revert "chore: remove vs90 sln files"

This reverts commit 51d78f82f1.

* chore: add DNSSD to components

* chore(DNSSD): disable in CI, update copyright and doc

* fix(DNSSD): CMake on Apple platforms: fix finding library providing DNSSD.

* fix(DNSSD): Handle kDNSServiceFlagsNonBrowsable that was removed in 1096.0.2

* chore: naming and code modernize review comments

* enh(DNSSD): Define DNSSD_*_API for non-MSVC compilers.

---------

Co-authored-by: Günter Obiltschnig <guenter.obiltschnig@appinf.com>
Co-authored-by:  <soroosh@soroosh-pc.localdomain>
Co-authored-by: Seyyed Soroosh Hosseinalipour <soorosh_abi@hotmail.com>
Co-authored-by: Matej Kenda <matejken@gmail.com>
2024-04-03 22:38:56 +02:00
Günter Obiltschnig
166efc721d fix(release): cpproj must include vcpkg files 2024-04-03 19:58:04 +02:00
Günter Obiltschnig
931dfeae6d doc: updated README[.md] 2024-04-03 17:21:05 +02:00
Günter Obiltschnig
10c3039398 chore(buldwin): remove WEC2013 2024-04-03 14:06:06 +02:00
Günter Obiltschnig
5c2fcedfa1 fix(build): VS project files for MongoDB 2024-04-03 12:54:27 +02:00
Günter Obiltschnig
c8bb5b8cac chore(build): re-generated VS project files 2024-04-03 12:33:13 +02:00
Günter Obiltschnig
f0e222450c enh(build): progen.ps1 improvements 2024-04-03 09:39:36 +02:00
Günter Obiltschnig
cd22900a37 enh(build): vcpkg support, cleanup/consistency 2024-04-03 09:20:14 +02:00
Günter Obiltschnig
f46e496fdc fix(build): Foundation VS project files 2024-04-03 09:01:34 +02:00
Günter Obiltschnig
04ef2698b1 chore(build): vcpkg dependencies 2024-04-03 08:42:20 +02:00
Günter Obiltschnig
7fc2c4ba6a feat(ProGen): vcpkg support 2024-04-03 08:41:27 +02:00
Günter Obiltschnig
01d55ae85e chore(PageCompiler): copyright date 2024-04-03 08:40:12 +02:00
Günter Obiltschnig
68d12fdd52 fix(NetSSL): SecureSocketImpl::peerCertificate() should just return certificate, not verify it 2024-04-03 07:51:55 +02:00
Günter Obiltschnig
401bec5010 style 2024-04-03 07:26:23 +02:00
Günter Obiltschnig
cbdaa1f369 style 2024-04-03 07:21:30 +02:00
Günter Obiltschnig
4892d97f51 fix(BinaryWriter): warning due to implicit cast 2024-04-03 07:12:03 +02:00
Günter Obiltschnig
a25cdac549 fix(Process): CloseHandle() on an null/invalid handle will throw an exception in the debugger 2024-04-03 07:09:37 +02:00
Günter Obiltschnig
e428c4b46c fix(ActiveRecord): Error between Poco::ActiveRecord and Poco::Data::PostgreSQL #4450 2024-04-03 07:01:34 +02:00
Aleksandar Fabijanic
0818febed3
3857 os tid (#4519)
* fix(Thread_POSIX): Thread_POSIX.cpp shouldn't convert thread IDs to long #3857;
FreeBSD build errors fixes

* chore(StreamTokenizerTest): fix warnings

* fix(build): FreeBSD config

* fix(ThreadTest): some tests checking nothing; temporatily comment FreeBSD threadStackSize test (segfaults on pthread_join)

* fix(Thread_POSIX): handle emscripten in currentOsTidImpl

* chore: fix emscripten define

* chore: fix some clang warnings; add sanitizer flag to FreeBSD linux compat build config
2024-04-02 23:36:06 +02:00
zhuzeitou
3496e47475
Optimize Net module for Android (#4517)
* epoll is available on Android

* <ifaddrs.h> is introduced in android-24
2024-04-02 19:03:41 +02:00
Aleksandar Fabijanic
ece360393f
4435 secure sock thread (#4512)
* fix(SecureSocket): Refactor detection of timeout when reading, writing or handshaking. (#3725)

* enh(SecureSocket): some trivial C++17 modernisation changes.

* chore: indentation and compiler warning

* fix(SecureSocketImpl): not thread-safe (1st attempt) #4435

* fix(SecureSocketImpl): silence CodeQL cpp/certificate-not-checked

---------

Co-authored-by: Matej Kenda <matejken@gmail.com>
2024-04-02 18:53:42 +02:00
Matej Kenda
8d3de8a5ed fix(SecureSocket): Reset does not close socket, it is closed in dtor. (#4415) 2024-03-29 19:09:28 +01:00
Matej Kenda
47a4db37e5 fix(CI): cmake: add simple client and server only when source files exist. 2024-03-29 15:34:17 +01:00
Alex Fabijanic
78c9dd1879 fix(CI): cmake can't find files 2024-03-29 08:54:28 -05:00
Günter Obiltschnig
8a00e2ce91 Merge branch 'devel' of github.com:pocoproject/poco into devel 2024-03-29 11:36:55 +01:00
Günter Obiltschnig
a4c7fc6d03 fix(Data/MySQL): preserve backwards-compatibility with pre 8.3 2024-03-29 11:36:42 +01:00
Matej Kenda
7efa7b7edc fix(NetSSL test): add missing includes. 2024-03-29 11:23:21 +01:00
Günter Obiltschnig
3d7fbbf314 fix(cmake): typo in CMakeLists.txt 2024-03-29 10:24:30 +01:00
Günter Obiltschnig
24cd658021 chore(Data/SQLite): Upgrade bundled SQLite to 3.45.2 #4515 2024-03-29 09:18:22 +01:00
Günter Obiltschnig
fa8dd55c8c fix(Data/MySQL): replace deprecated mysql_stmt_bind_param() with mysql_stmt_bind_named_param() 2024-03-29 08:26:38 +01:00
Andrew Auclair
47c4f073e6
Moving operator<< and operator>> overloads into the Poco::Net namespace. (#4491) 2024-03-28 19:43:14 +01:00