Commit Graph

1190 Commits

Author SHA1 Message Date
Leonid Stryzhevskyi
1c38fa2c7f
Merge pull request #430 from oatpp/enforce_standard_compliance_on_msvc
Added /permissive- flag on MSVC to enforce standard compliancy
2021-05-16 02:22:15 +03:00
MHaselmaier
773f699601 Added /permissive- flag on MSVC to enforce standard compliancy 2021-05-15 09:59:11 +02:00
Leonid Stryzhevskyi
0bd892ea47
Merge pull request #429 from oatpp/Remove_ListMap
Removed unused core::collection::ListMap
2021-05-14 17:20:40 +03:00
MHaselmaier
2956ad6dfa Removed core::collection::ListMap 2021-05-14 13:16:39 +02:00
Leonid Stryzhevskyi
37cab34a19
Merge pull request #428 from autoantwort/fix-localtime_r
Use always localtime_s on windows.
2021-05-11 19:56:11 +03:00
Leander Schulten
6ad5cd2791 Always use localtime_s on windows. Previously a function was used that only handles 32 bit time_t values while time_t was 64 bit 2021-05-10 21:38:32 +02:00
Leonid Stryzhevskyi
501b7cc00d
Merge pull request #427 from DavidKorczynski/master
Migrating fuzzers from oss-fuzz.
2021-05-07 19:58:02 +03:00
davkor
d107e4b658
Moved fuzzer to dedicated folder.
Signed-off-by: davkor <david@adalogics.com>
2021-05-07 17:52:17 +01:00
davkor
da43b35692
migrating fuzzers from oss-fuzz. 2021-05-07 15:10:08 +01:00
Leonid Stryzhevskyi
4588f8d1e5
Merge pull request #426 from MHaselmaier/master
Fixed compiler warnings
2021-05-06 23:53:04 +03:00
MHaselmaier
185464b155 Fixed compiler warning for unreferenced local variables and truncations on MSVC 2021-05-06 21:27:35 +02:00
Leonid Stryzhevskyi
13eaca0dc7
Merge pull request #423 from MHaselmaier/master
Fixed memory leak in move assignement operators
2021-05-03 23:42:26 +03:00
MHaselmaier
4f1e0b81d9 Fixed memory leak in move assignement operators 2021-05-03 21:59:43 +02:00
Leonid Stryzhevskyi
2b6a90f601
Merge pull request #422 from MHaselmaier/master
Minor performance relevant changes
2021-05-03 14:26:10 +03:00
MHaselmaier
25a7d4c8bf Utilized std::vector constructor to default initialize n elements instead of calling push_back n times 2021-05-03 12:12:43 +02:00
MHaselmaier
ffcc180dc1 Removed unesseccary copies 2021-05-03 12:10:21 +02:00
MHaselmaier
19e9c59b62 Used perfect forwarding in Coroutine::start 2021-05-03 12:07:03 +02:00
Leonid Stryzhevskyi
019ca7f579
Merge pull request #421 from MHaselmaier/master
Added missing virtual destructor and removed superflous virtual specifier
2021-05-02 17:23:21 +03:00
MHaselmaier
881a3b9b49 Added missing virtual destructor.
Removed superflous virtual.
2021-05-02 16:03:26 +02:00
Leonid Stryzhevskyi
6e9de70898
Merge pull request #420 from MHaselmaier/master
Minor refactorings
2021-05-02 15:46:24 +03:00
MHaselmaier
9fb654b8fb Removed superfluous virutal 2021-05-02 14:23:31 +02:00
MHaselmaier
9fe78ba9f6 Merge remote-tracking branch 'upstream/master' 2021-05-02 12:05:58 +02:00
MHaselmaier
7ca0ec7875 Declared variable when used, not a the start of function 2021-05-02 11:59:49 +02:00
MHaselmaier
91c3818a64 Replaced goto statement with break 2021-05-02 11:57:26 +02:00
MHaselmaier
250d399d64 Added missing override specifier 2021-05-02 11:56:09 +02:00
Leonid Stryzhevskyi
4990eb6155
Merge pull request #419 from MHaselmaier/master
Added missing throw keyword
2021-05-02 10:47:29 +03:00
MHaselmaier
f3d513992f added missing throw keyword 2021-05-02 09:30:59 +02:00
Leonid Stryzhevskyi
fba6d02c89
Merge pull request #414 from boldrij/update_port_after_binding
Update port after binding
2021-04-22 23:42:56 +03:00
boldrij
899f675ebf Update ConnectionProvider.cpp
forget ;
2021-04-22 20:10:32 +02:00
boldrij
c8996c42d7 Update port after binding
Typicaly in case we use a port equal 0 to let the system find a free port, we need to update the port property of the provider
2021-04-22 20:03:54 +02:00
Leonid Stryzhevskyi
d6521d2178
Merge pull request #396 from bamkrs/master
Add hints and advice to the threading-examples in `Server.hpp`
2021-03-01 15:07:07 +02:00
Benedikt-Alexander Mokroß
24c89a7ce8 Add hints and advice to the threading-examples in Server.hpp and added the link to the warning in Server.cpp 2021-03-01 08:50:43 +01:00
Kasper Seweryn
78e6152090
Fix #324 (#395)
* Attempt to patch #324

* Add check for MinGW and code attribution
2021-03-01 07:36:34 +01:00
Benedikt-Alexander Mokroß
29650b0557 Implemented copy-assign and move-assign operators for HttpProcessor::Task to satisfy 'Rule of Two'. 2021-02-23 09:53:24 +01:00
Benedikt-Alexander Mokroß
ca19e5b072 Implemented move-constructor of HttpProcessor::Task to use its performance-gain over copy. 2021-02-23 09:45:46 +01:00
Benedikt-Alexander Mokroß
8badb89a1c Implemented copy-constructor of HttpProcessor::Task to fix task-counting. 2021-02-23 09:20:43 +01:00
Benedikt-Alexander Mokroß
28b71c7884 Prevent the connection-handlers to spawn new HttpProcessor after stop() is called.
Also pass the counter as raw pointer to prevent two atomic operations introduced with `std::shared_ptr`.
2021-02-23 09:15:51 +01:00
Benedikt-Alexander Mokroß
233b1040f5 Let the ConnectionHandlers count how many threads they spawn.
To reliable stop a ConnectionHandler it needs to count its spawned threads.
Because we can have multiple ConnectionHandlers, this counting can not be done via the `Components` since they *could* be shared between multiple ConnectionHandlers.
Thus we have to pass the counter separately.
While the counting can easily be done in the constructor and destructor of the Async-Api's `Coroutine` since it's threadpool cleanly allocs and deallocs the `Coroutine` the Simple-Api needs to be counted in the `Task::run()` method. It seems that std::thread does not deallocates the passed `HttpProcessor::Task` as expected (i.E. when the thread is done).
2021-02-22 18:36:17 +01:00
Leonid Stryzhevskyi
9899786b23
Update README.md 2021-02-16 04:13:54 +02:00
Leonid Stryzhevskyi
f9b5c755a1
Merge pull request #390 from oatpp/fix_missing_virtual_destructors
Fix missing virtual destructors
2021-02-16 03:33:09 +02:00
lganzzzo
44813e4113 web::server::interceptor: Add missing virtual destructors for Request/Response interceptors. 2021-02-16 03:31:50 +02:00
Zach
b207ad307a
Merge pull request #1 from acidtonic/acidtonic-patch-1
Update RequestInterceptor.hpp
2021-02-15 14:57:26 -05:00
Zach
42685cf0d1
Update RequestInterceptor.hpp
Corrected virtual class with public non-virtual destructor.
2021-02-15 14:57:03 -05:00
Leonid Stryzhevskyi
255fd435af
Update 1.2.5.md 2021-02-14 23:04:06 +02:00
Leonid Stryzhevskyi
b43355c001
Merge pull request #386 from oncontroltech/master
Fix a 64bit function that was also being called when the environment …
2021-01-30 21:53:47 +02:00
Samega 7Cattac
e43af7c06e
Fix a 64bit function that was also being called when the environment is 32btis.
The function _localtime64 was being called inside a ifdef WIN32 which
makes it try to compile even when it's in a 32bti environment.
Now if it calls _localtime32 in that case.
Tested on Windows using Msys+mingw 32bit shell.

Signed-off-by: Samega 7Cattac <7Cattac@gmail.com>
2021-01-30 17:35:11 +00:00
Leonid Stryzhevskyi
50748b4011
Merge pull request #378 from oatpp/optional_query_parameters
Add optional default-value for QUERY parameters to ease the implementation of optional QUERY parameters
2021-01-12 15:15:29 +02:00
Benedikt-Alexander Mokroß
5502a0cbf0 Add optional default-value for QUERY parameters to ease the implementation of optional QUERY parameters. 2021-01-12 13:15:47 +01:00
Leonid Stryzhevskyi
6b4413552a
Merge pull request #373 from oatpp/fix_wrong_loop_call_on_conditional_nullptr_issue372
Fix wrong calling of conditional loop if condition is null (Closes #372)
2021-01-06 00:41:30 +02:00
Benedikt-Alexander Mokroß
cc7ef1b275 Fix wrong calling of conditional loop if condition is null (Closes #372( 2021-01-05 21:49:28 +01:00