Commit graph

591 commits

Author SHA1 Message Date
eidheim
ec593ebd93 Fixes #287: fixed STREQUAL expressions in CMakeLists.txt 2020-04-03 11:03:19 +02:00
eidheim
4d3ca3c1c0 Fixes #291 : added missing inline keyword to make_work_guard 2020-02-28 11:35:57 +01:00
eidheim
f4ebb57420 Fixed dangling reference in Client::sync_request mentioned in https://gitlab.com/eidheim/Simple-Web-Server/-/merge_requests/248#note_291088756 2020-02-19 18:04:08 +01:00
eidheim
2b5ae3d0d1 Client: removed duplicate code 2020-02-19 11:58:54 +01:00
eidheim
c6c7d0a6f2 Related to !248: completed synchronous request() fixes 2020-02-19 10:45:05 +01:00
Jens Moeller
49e2bb9261 Support asynchronous requests with internal I/O context 2020-02-18 22:00:02 +00:00
Jens Moeller
571fe8b0ad Use futures in synchronous request() methods 2020-02-18 13:05:43 -06:00
eidheim
bc4f6f0a6d Update license year 2020-02-14 09:10:49 +01:00
eidheim
1bc0b9a779 Minor fix of streambuf size check in chunked transfer 2020-02-04 11:06:20 +01:00
eidheim
84455ac966 Cleanup of timeout handling: timeouts are no longer reset on partial reads and sends 2020-02-04 10:01:49 +01:00
eidheim
d96ed6f02c Cleanup of content max_size checks 2020-02-04 09:09:12 +01:00
eidheim
02bcd02891 Fixes #289: Client now also attempts to reconnect if writing request to server fails 2020-02-03 11:18:54 +01:00
eidheim
3be67623fa Client: async request handlers are now called multiple times if response content is larger than Config::max_response_streambuf_size. Also improved streambuf to streambuf copy, and streambuf to string copy. Finally, string() functions no longer consume streambuf. 2020-02-01 17:11:09 +01:00
eidheim
5544612a19 Cleanup of chunked transfer: now writes directly to request/response streambuf 2020-01-14 12:44:26 +01:00
eidheim
f59906cc90 Removed pop_back that could lead to undefined behaviour 2020-01-14 09:46:12 +01:00
eidheim
9e4aee7fd3 Improved OPENSSL_VERSION_NUMBER check 2020-01-03 12:10:46 +01:00
eidheim
624d088b61 Server: added timeouts to send_from_queue instead of send() in case clients are stalled and server is continously sending data without checking if previous sends are read or not 2019-12-31 11:01:37 +01:00
eidheim
22adbf7802 Added missing header to examples 2019-12-30 18:58:18 +01:00
eidheim
a5fcd2ba0d Updated examples using start callback 2019-12-30 18:53:02 +01:00
eidheim
d1f273a9f1 The start callback now contains the assigned port instead of having to use bind and accept_and_run methods 2019-12-30 11:13:41 +01:00
eidheim
ac6bea58ff Added SimpleWeb::post to asio_compability.hpp 2019-12-29 10:55:57 +01:00
eidheim
d156326598 Added callback to start and accept_and_run 2019-12-29 10:35:14 +01:00
eidheim
a4db34d989 Removed unneccessary session_id_length variable 2019-12-14 08:26:02 +01:00
Vlad Lipskiy
bf94fc838d Fixes C4267 MSVC warning in server_https.hpp
std::min result is limited by SSL_MAX_SSL_SESSION_ID_LENGTH, which
fully fits in unsigned int. So the cast won't truncate anything.
2019-12-06 20:29:50 +03:00
eidheim
3c2b8c7e53 Removed extra newline in README 2019-11-01 13:37:35 +01:00
NeroBurner
bff663c407 README: update cmake commands
using cmake --build is more cross platform and independent of the used generator/compiler
2019-10-29 13:03:27 +01:00
David Wedderwille
df8fdb277b fixes compile error with MinGW. 2019-09-30 14:19:23 +02:00
eidheim
08a07644ad Removed unnecessary check 2019-09-17 11:35:38 +02:00
eidheim
a1d8282918 Deprecated Request::remote_endpoint_address() and Request::remote_endpoint_port() 2019-09-17 10:59:21 +02:00
eidheim
da7eee64a8 Fixes #282 : compilation error in MSVC 2019-09-16 09:50:59 +02:00
eidheim
fa38408853 Fixes #283 : Added Server::Request::remote_endpoint() 2019-09-15 18:46:51 +02:00
eidheim
b914172056 Fixes #282 : use thread-safe variants of gmtime 2019-09-14 14:23:46 +02:00
eidheim
253b18f02b Fixes #280 : added start_stop_mutex that is used in Server::bind() and Server::stop() 2019-08-26 14:13:43 +02:00
eidheim
44b787e27a Removed flag -Wsign-conversion for now due to excessive warnings from boost 2019-08-26 14:11:26 +02:00
Kyle Niemeyer
1bfa70cc01 Update paper.bib 2019-08-26 02:25:19 +00:00
eidheim
3dd3f1d4be Removed boost reference from JOSS paper 2019-08-25 21:56:13 +02:00
David Wedderwille
3c251dfadb create the examples only ( http_examples.cpp / https_examples.cpp ) if the boost library is found. 2019-08-13 13:44:23 +02:00
eidheim
0f8b26ff19 Fixes #276 incorrect abbreviation for december in Date::to_string 2019-08-05 09:18:27 +02:00
eidheim
db24254c96 Updated the websocket paper reference 2019-08-01 10:06:44 +02:00
eidheim
7b6293c067 Made Date::to_string thread safe with other Date::to_string calls 2019-08-01 09:13:08 +02:00
eidheim
0eeb972b51 Extended the usage documentation, and added additional output in the example files, as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-516803423 2019-07-31 22:21:44 +02:00
eidheim
5b6a606f4c Added a benchmark page as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-515900507 2019-07-31 22:21:00 +02:00
eidheim
ac7cc6ef01 Optimized Date::to_string for successive calls 2019-07-31 21:38:35 +02:00
eidheim
83788f3885 Added SimpleWeb::Date::to_string to create HTTP date strings 2019-07-31 15:23:50 +02:00
eidheim
3f1591b6fa Now only calls asio::socket::remote_endpoint() when needed 2019-07-31 12:31:24 +02:00
eidheim
8c14611102 Moved the dependency installation instructions to README.md as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-515909842 2019-07-30 21:02:47 +02:00
eidheim
8edf4355f2 Updated paper.md based on feedback in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-515900507 2019-07-30 20:39:04 +02:00
eidheim
f09a651a6b Server: improved reading remote endpoint in case of errors 2019-07-30 11:33:19 +02:00
eidheim
99d14cf841 Added more detailed dependency installation instructions as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-515789575 2019-07-29 10:14:34 +02:00
eidheim
dcc6090678 Added doxygen documentation to GitLab pages as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-515643495 2019-07-28 12:04:47 +02:00