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
lganzzzo
92ed4b72a2
Types: oatpp::Void now is a special type of ObjectMapper.
2021-04-13 23:37:47 +03:00
lganzzzo
102394f798
ObjectWrapper: non-const valueType
2021-04-13 22:41:50 +03:00
lganzzzo
247c994171
oatpp::String: more convenient methods.
2021-04-02 23:14:23 +03:00
lganzzzo
15f77f1ed2
Codegen: INIT_DTO macro - remove default constuctor.
2021-03-30 00:16:02 +03:00
lganzzzo
b49f02f438
Tests: uncomment all tests.
2021-03-25 04:28:28 +02:00
lganzzzo
403835eeb7
Merge branch 'v1.3.0' into types_refactoring
2021-03-25 04:26:43 +02:00
lganzzzo
a2631fe051
Types: Refactor oatpp::String to use std::string.
2021-03-25 04:17:03 +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
Leonid Stryzhevskyi
149ddb30df
Merge pull request #365 from oatpp/conditional_server_run
...
WIP/Discussion: Let server check an (optional) stopping condition by itself
2021-01-04 13:11:55 +02:00
Benedikt-Alexander Mokroß
a2d423490c
Correctly call conditionalMainLoop()
instead of the unconditional mainLoop
for the conditional run.
2021-01-04 10:17:21 +01:00
Benedikt-Alexander Mokroß
dbd02bb98d
Merge remote-tracking branch 'origin/conditional_server_run' into conditional_server_run
2021-01-04 09:37:08 +01:00
Benedikt-Alexander Mokroß
de2f6cd59c
Replaced erroneous pass-by-value with pass-by-reference in ClientServerTestRunner.hpp that prevented shutting down the server correctly.
2021-01-04 09:36:55 +01:00