Commit graph

604 commits

Author SHA1 Message Date
eidheim
f6df4cde4e Made use of libfuzzer 2020-08-08 11:14:37 +02:00
Michael Maroszek
8e82428740 expose local endpoint 2020-07-28 11:36:54 +02:00
eidheim
4ec478883e Applied style format 2020-06-28 08:22:49 +02:00
eidheim
7b06f736b2 Merge branch 'ipv4_fallback' of https://gitlab.com/quobert/Simple-Web-Server 2020-06-28 08:13:59 +02:00
eidheim
8ee71cddbb Fixes #301: Do not run add_compile_options when Simple-Web-Server is a sub-project 2020-06-26 18:51:22 +02:00
Robert Doebbelin
69d6a42089 Fall back to IPv4 if IPv6 is not supported 2020-06-26 15:28:22 +02:00
eidheim
eff3b76aa5 Related to #298: fixed chunk transfer read when only end of chunk remains unread 2020-05-13 13:32:59 +02:00
eidheim
9cdfe80ce6 Corrected boost::asio::streambuf to asio::streambuf 2020-05-13 10:38:03 +02:00
eidheim
a20a729a40 Fixes #298: corrected removal of chunk end when receiving larger chunks 2020-05-13 10:28:27 +02:00
eidheim
d49072a4f1 Fixes #298: corrected chunked transfer read where first bytes in a chunk could be erroneously removed 2020-05-12 15:54:56 +02:00
eidheim
409054e812 Fixes #296: corrected client response parsing when response contained header field Connection: close 2020-04-18 13:07:44 +02:00
eidheim
61990c2aee Fixes #295: set default client port when unable to parse port string 2020-04-17 13:36:57 +02:00
eidheim
ebeafc989e Fixes #293: added workaround for MSVC max bug 2020-04-03 11:10:40 +02:00
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