Commit Graph

1415 Commits

Author SHA1 Message Date
Kai Meinhard
6e4e30bfa2 Update src/oatpp-test/UnitTest.hpp
Co-authored-by: Benedikt-Alexander Mokroß <github@bamkrs.de>
2021-10-13 15:16:28 +02:00
Kai Meinhard
f4a178f9f7 [UnitTest]: Added before and after methods to Unit Test
There might be some setup/teardown code that is no supposed
to run in every iteration of a test.
Additionally this code is not included in the time measurement.
2021-10-13 14:54:55 +02:00
Leonid Stryzhevskyi
00ee3eea78
Update 1.3.0.md 2021-10-13 03:03:42 +03:00
Leonid Stryzhevskyi
cc40fe69c8
Merge pull request #488 from oatpp/connection_monitor
Connection monitor
2021-10-13 02:48:27 +03:00
lganzzzo
46a2f98758 Api docs. ConnectionMonitor. 2021-10-13 02:47:46 +03:00
lganzzzo
42bbaf3224 Tests: uncomment all. 2021-10-07 02:43:51 +03:00
lganzzzo
7f5576f52e data::stream: make transferAsync() method consistent with simple API. 2021-10-07 02:30:54 +03:00
lganzzzo
08b02340c9 Tests: ConnectionMonitor. Fix Windows build. 2021-10-07 01:51:32 +03:00
lganzzzo
3e97c45b71 tests: ConnectionMonitorTest 2021-10-07 01:19:50 +03:00
lganzzzo
eb1296cbb5 ConnectionMonitor: introduce ConnectionInactivityChecker 2021-10-05 01:37:13 +03:00
Leonid Stryzhevskyi
d9e8e0cb34
Merge pull request #486 from Garzet/master
Add ErrorHandler virtual destructor
2021-09-27 17:01:48 +03:00
Rudolf Lovrenčić
284647320d Add ErrorHandler virtual destructor
Virtual destructor added to the ErrorHandler since derived class
destructor should be called when destroying an object via a pointer to
the base type (ErrorHandler in this case).
2021-09-27 14:25:33 +02:00
lganzzzo
d47ae5c20a ConnectionMonitor: move ConnectionMonitor to network::monitor namespace. 2021-09-25 01:05:51 +03:00
lganzzzo
2ffcf9cc20 ConnectionMonitor: working POC 2021-09-23 01:24:52 +03:00
lganzzzo
0ed9ce14dc tests: Add ConnectionMonitorTest 2021-09-23 00:21:49 +03:00
lganzzzo
964a68253e ConnectionMonitor: introduce MetricAnalyser. 2021-09-22 02:22:03 +03:00
lganzzzo
c1da819763 Merge branch 'master' into connection_monitor 2021-09-22 01:52:35 +03:00
Benedikt-Alexander Mokroß
0dee902a69
Merge pull request #484 from bamkrs/server_replace_connectionprovider
Add setter for `Server`s `ConnectionProvider`.
2021-09-15 17:06:39 +02:00
Benedikt-Alexander Mokroß
d14dd5be90 Lockguards around m_connectionProvider->get() 2021-09-15 10:40:36 +02:00
Benedikt-Alexander Mokroß
dbab5a7acc Synchronized setter functions.
Should we use two spinlocks (protecting two different variables)?
2021-09-15 09:28:18 +02:00
Benedikt-Alexander Mokroß
462b9c43bf Add setter for Servers ConnectionProvider.
We may need synchronization for that.
2021-09-15 09:13:56 +02:00
lganzzzo
ee03d7bc54 Merge branch 'v1.3.0' into connection_monitor 2021-09-15 00:27:10 +03:00
lganzzzo
8cd357aba3 merge with master 2021-09-15 00:26:26 +03:00
Leonid Stryzhevskyi
9400c3014e
Merge pull request #482 from bamkrs/replace_headers
Add API to replace headers in requests and responses (Closes #481).
2021-09-14 16:01:31 +03:00
Benedikt-Alexander Mokroß
06a690d73e Renamed replaceOrPut to putOrReplace. 2021-09-14 14:14:25 +02:00
Benedikt-Alexander Mokroß
8e9dafb9ad Actually fix #481 2021-09-14 07:13:47 +02:00
Benedikt-Alexander Mokroß
1ce3e3bd16 Add API to replace headers in requests and responses (Closes #481). 2021-09-10 08:12:14 +02:00
Leonid Stryzhevskyi
f1599f2144
Merge pull request #479 from Yadoms/fixCrossCompileWithGcc
Try to fix cross compilation for Raspberry/Synology
2021-09-08 01:53:09 +03:00
Sébastien Gallou
a39630d6d0 Try to fix cross compilation for Raspberry/Synology 2021-09-07 18:12:50 +02:00
lganzzzo
1230a81753 network: introduce ConnectionMonitor. 2021-09-07 02:17:50 +03:00
lganzzzo
eb666070ab Merge branch 'v1.3.0' into connection_monitor 2021-08-27 00:17:31 +03:00
Leonid Stryzhevskyi
92b5a444d1
Merge pull request #473 from oatpp/string_convenience_improvement
oatpp::String: better convenience methods.
2021-08-25 01:14:11 +03:00
lganzzzo
e8b7aac6af Refactor, rename String convenience methods. 2021-08-25 01:10:03 +03:00
lganzzzo
f70f949cf2 utils::String: Fix missing include. 2021-08-25 00:55:43 +03:00
lganzzzo
6ee5ddba3b oatpp::String: better convenience methods. 2021-08-25 00:49:43 +03:00
lganzzzo
f4d0502056 oatpp version: 1.3.0 2021-08-24 23:07:31 +03:00
Leonid Stryzhevskyi
15fda20dcc
Merge pull request #471 from grisuthedragon/v1.3.0
oatpp::String works better with std::string
2021-08-24 23:03:28 +03:00
Martin Koehler
c125a21207 Added class and namespace to error message 2021-08-24 18:35:54 +02:00
Martin Koehler
d9cbbb7ceb fixes from review 2021-08-24 15:54:20 +02:00
Martin Koehler
9ffabd91c9 oatpp::String works better with std::string
* The oatpp::String class owns a typecast operator to
  std::string, now.
* The oatpp::String class is extended by the `equalsCI` function
  for case-insensitive comparision of two strings.
  This is required to get oatpp-swagger working again,
2021-08-24 12:54:50 +02:00
lganzzzo
66fdc4af2f network: ConnectionMonitor first steps 2021-08-19 22:38:52 +03:00
Leonid Stryzhevskyi
07b04dc7ca
Merge pull request #468 from bamkrs/buffered_streams
`FIFOBuffer` should accept an `WriteCallback`/`ReadCallback`
2021-08-19 14:21:30 +03:00
Benedikt-Alexander Mokroß
340212ba89 Fixed bug in FIFOInputStream::createShared() which did not pass the parameter to the constructor. 2021-08-19 09:03:46 +02:00
Benedikt-Alexander Mokroß
5d70a226ae FIFOBuffer should accept an WriteCallback/ReadCallback to its readAndWriteToStream and readFromStreamAndWrite functions.
There is no need to specialize on a `Stream`.

Its an non-breaking change. Also renaming the functions to `readAndWriteToCallback` and `readFromCallbackAndWrite` would break things.
2021-08-18 21:10:47 +02:00
Benedikt-Alexander Mokroß
67755cf00b
Merge pull request #466 from bamkrs/buffered_streams
Streams: New `FIFOStream` stream and `BufferedInputStream` interface
2021-08-18 10:09:59 +02:00
Benedikt-Alexander Mokroß
341812cf29
Merge branch 'v1.3.0' into buffered_streams 2021-08-18 09:22:30 +02:00
Benedikt-Alexander Mokroß
35a84e0d9e Added entry for FIFOStream and BufferedInputStream in changelog/1.3.0.md 2021-08-18 09:20:18 +02:00
Benedikt-Alexander Mokroß
23322d7cab Better documentation for FIFOStream. 2021-08-18 08:42:07 +02:00
Benedikt-Alexander Mokroß
d4b301a818
Update 1.3.0.md
Added note about Response::getBody()
2021-08-17 16:42:44 +02:00
Benedikt-Alexander Mokroß
635922fe26 Fixed bug preventing a correct buffer resize. 2021-08-17 16:01:44 +02:00