Commit graph

61 commits

Author SHA1 Message Date
eidheim
26215025c8 Fixed deprecated calls 2025-04-03 10:58:13 +02:00
eidheim
7c4f63cdad Corrected ASIO_STANDALONE definition checks 2023-04-25 09:35:39 +02: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
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
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
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
ed46b43fa7 Improved comments on public functions and variables as suggested in https://github.com/openjournals/joss-reviews/issues/1592#issuecomment-514946444 2019-07-26 09:28:20 +02:00
eidheim
fc43fc362d Cleanup of include guards 2019-06-25 11:56:21 +02:00
eidheim
31e6819b42 Added SimpleWeb::error, and simplified request size checks on server 2019-06-23 20:27:54 +02:00
eidheim
f52c8a020b Cleanup of start and its related functions. Also removed unused lambda captures. 2018-05-05 10:05:11 +02:00
eidheim
0c8da107a6 Rename ServerBase::read_request_and_content to ServerBase::read, and ServerBase::write_response to ServerBase::write 2017-11-19 18:03:28 +01:00
eidheim
6e0a1ec9e8 Fixes issue mentioned in #164: remote endpoint address and port was not correctly set. Request::remote_endpoint_address and Request::remote_endpoint_port are now functions instead of variables in order to reduce unnecessary instructions. 2017-11-05 18:48:21 +01:00
eidheim
bc4c49134d Removed unnecessary cstddef includes 2017-09-30 12:08:53 +02:00
knowledge4igor
2cfaa0e2a0 Mini refactoring: using std::size_t and std::numeric_limits 2017-09-25 23:33:31 +03:00
eidheim
69f945f686 Fixes #155: added max streambuf config items to limit large requests/responses if needed 2017-09-25 09:58:50 +02:00
knowledge4igor
3ab6cd8a39 Change 'typedef' constructions to type aliases 2017-09-05 01:32:21 +03:00
eidheim
7c2f714949 noexcept cleanup 2017-07-22 13:33:32 +02:00
eidheim
7dd2d2108a Added noexcept 2017-07-22 12:50:40 +02:00
eidheim
474fab90f3 Renamed ScopesContinue to ScopeRunner, and some related cleanup 2017-07-20 17:21:19 +02:00
eidheim
70e8c3104c Renamed ContinueScopes to ScopesContinue 2017-07-20 11:31:58 +02:00
eidheim
35f835a67b Cancel handlers feature: replaced readers-writer lock with a spinlock implementation 2017-07-20 10:04:05 +02:00
eidheim
d8b8716a17 Session and Connection cleanup 2017-07-10 10:51:24 +02:00
eidheim
dfd7895328 Shared mutex is no longer used when using internal io_service 2017-07-09 09:13:03 +02:00
eidheim
6c2c8d680b No longer stores pointer to Server/Client instance in Session objects. Some other cleanups as well. 2017-07-08 22:21:29 +02:00
eidheim
f3f527467f Now close connections when Server::stop is called 2017-07-08 11:47:05 +02:00
eidheim
9b5063f422 Replaced Server/Client::shared_from_this with asio callback checks if the Server/Client has been destroyed. Also added SharedMutex to utility.hpp. 2017-07-07 11:25:06 +02:00
eidheim
d9416c2566 Added Client::close, and Client::connections and Client::connections_mutex are no longer shared_ptrs 2017-07-04 23:25:30 +02:00
eidheim
68f1e8413a Reverted resource/response function parameter types shared_ptr& to shared_ptr. No real value added here, just more complicated code. Compiler might also optimise the now const lambda captures. 2017-07-04 12:04:07 +02:00
eidheim
c934c9aefe Timeout timers and Client's connection close cleanup 2017-07-04 08:51:15 +02:00
eidheim
30f4f94a03 ServerBase now derives from and use std::enable_shared_from_this 2017-07-03 18:00:49 +02:00
eidheim
1992bbb4b4 Preparation for std::enable_shared_from_this: Server- and Client-constructors are no longer public, use ::create instead 2017-07-03 15:02:35 +02:00
eidheim
80ab651fca Removed deprecated functions 2017-07-03 14:31:22 +02:00
eidheim
b3a1d48c0a Callback shared_ptr parameters are now shared_ptr& 2017-07-03 14:25:48 +02:00
eidheim
e50d2fc63a Added .clang-format file and applied style to source files 2017-06-26 15:23:29 +02:00
eidheim
ec63c4345e Cleanup of #127: using standalone asio. 2017-06-07 19:27:34 +02:00
Sébastien Huss
d50bcabf8e added Support for NO_BOOST 2017-06-05 07:39:58 +02:00
eidheim
ec5eda1521 Minor SocketServer<WSS> constructor cleanup 2016-12-30 10:44:10 +01:00
eidheim
6c3a59d9ba Cleanup of server-constructors. Previous constructors have been marked as deprecated. 2016-12-29 09:53:58 +01:00
eidheim
eef8a10849 Added error reporting through on_error std::function 2016-12-19 08:44:41 +01:00
eidheim
8a88a019ea Minor cleanup, replaced expression with std::min 2016-12-18 17:34:22 +01:00
eidheim
7a97f8218d Added client verification when a verify file is passed to Server<HTTPS>. Also sets session_id_context for session reuse. See #89 2016-12-18 17:22:04 +01:00
eidheim
8a73cb381a Fixes #86: can now set timeout on client requests 2016-11-23 07:01:48 +01:00
David Olszowka
743785b563 Fixed crash if server instance gets deleted after the call to io_service->stop() but before the acceptor gets notified of the stop. 2016-11-10 10:16:49 +01:00
eidheim
3a4b7143cc Can now use external, or reuse, boost::asio::io_service. 2016-10-19 09:53:32 +02:00
Michael Behrns-Miller [bitpost-gentoo]
9701a4504b only use tlsv12, nothing older 2016-08-21 07:42:58 -04:00
eidheim
1268c5b6de Changed private to protected in Server/Client<HTTP/HTTPS> classes, and some cleanup 2016-08-21 10:59:24 +02:00