Commit graph

627 commits

Author SHA1 Message Date
Hungpo DU
bdb105712b Set a timeout for https async_resolve 2022-02-18 12:25:25 +08:00
Vitalii Trubchaninov
0087f7082e Don't access this before alive check 2021-11-09 01:57:06 -05:00
eidheim
8c8045a696 Client: enables TLS 1.3 2021-04-13 14:38:01 +02:00
eidheim
60a332e124 Reverted context::tls_server to context::ssl23_server change, and fixed stretch CI 2021-04-13 14:24:08 +02:00
eidheim
972ef8ebf9 Merge https://gitlab.com/Eswcvlad/Simple-Web-Server 2021-04-13 14:19:40 +02:00
eidheim
c97be4caab Added another client parse host_port test 2021-04-09 19:34:26 +02:00
eidheim
bab4b309ca Client: added parsing of host specified with IPv6 address 2021-04-09 14:33:43 +02:00
Vlad Lipskiy
d60136d6b2 Replaces context::tls_server with context::ssl23_server to support older boost versions.
tls, tls_client and tls_server contexts were added only in boost 1.63.
2021-04-09 13:17:00 +03:00
eidheim
c896342127 Removed Debian jessie from CI 2021-04-09 09:19:18 +02:00
Vlad Lipskiy
13ab200372 Enables TLS 1.3 support in server_https. 2021-04-02 18:01:44 +03:00
eidheim
1bb89e1e8e Fixes #317: Make use of ASIO_STANDALONE when using standalone asio in order to compile on older asio versions without boost 2021-03-26 10:11:39 +01:00
eidheim
cc0dc20947 Corrected documentation of Server<HTTPS> constructor 2021-02-17 08:59:25 +01:00
eidheim
d6b057a673 Corrected test names in .gitignore 2020-11-29 18:25:13 +01:00
eidheim
dd6094b91c Minor style format correction 2020-10-26 14:28:28 +01:00
Jørgen Sverre Lien Sellæg
898b6abd1b add prefix to common test names 2020-10-09 15:17:15 +02:00
eidheim
190e3498c3 Fixes #305: no longer forces on BUILD_TESTING 2020-09-22 16:41:47 +02:00
eidheim
14c0e3a3a3 Applied style format 2020-09-16 14:53:02 +02:00
eidheim
a0cc9e81c7 Minor cleanup of QueryString::parse 2020-08-31 13:12:21 +02:00
woe
987e8358f9 Allow "?" in URL body
See https://stackoverflow.com/questions/2924160/is-it-valid-to-have-more-than-one-question-mark-in-a-url
2020-08-27 15:10:06 +02:00
woe
8a877027a1 Handle "=" in URL query parameters (i.e. site.com?compare=1=2& 2020-08-27 15:08:55 +02:00
eidheim
5d65a5d89b Fixes another compilation issue: make_steady_timer now returns std::unique_ptr 2020-08-26 11:43:28 +02:00
eidheim
ec27950d68 Fixed compilation issue: also added make_steady_timer for older (boost.)asio versions 2020-08-26 11:37:09 +02:00
eidheim
4c57860d7e Fixed compilation issue with standalone Asio: https://gitlab.com/eidheim/Simple-WebSocket-Server/-/issues/151 2020-08-26 11:18:12 +02:00
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