Commit graph

544 commits

Author SHA1 Message Date
eidheim
5e5a4c8c3b Added noexcept to HttpHeader::parse 2017-09-02 18:49:22 +02:00
eidheim
9e5f86edcd Added HttpHeader::parse 2017-09-02 18:44:48 +02:00
eidheim
f7ddeeda82 Completed PR #153: using steady timer instead of deadline timer to remove boost dependency when using standalone asio 2017-08-29 09:29:23 +02:00
Breeze Chen
28803d81be Removed dependency of boost::deadline_timer if USE_STANDALONE_ASIO is defined. 2017-08-29 11:19:52 +08:00
eidheim
41891d3816 Fixes #152: Added client support for Server Name Indication 2017-08-22 09:07:54 +02:00
eidheim
cc838b6ec2 Minor utility.hpp cleanup 2017-08-13 00:07:45 +02:00
eidheim
50b13c2fd6 Added .usages_clang to .gitignore 2017-08-12 15:37:32 +02:00
eidheim
42de0bea13 Client: added try catch when parsing length of chunked content 2017-08-12 15:37:32 +02:00
eidheim
64bd58e5da Fixes #149: added and resolved -Wsign-conversion warnings 2017-08-12 15:36:28 +02:00
eidheim
ea2b0f4a80 Minor comment change to string() functions 2017-08-01 07:58:19 +02:00
eidheim
dcaad5e9da Minor comment cleanup 2017-07-26 08:05:02 +02:00
eidheim
95d44b804d Reverted boost thread removal 2017-07-24 07:37:33 +02:00
eidheim
9548404fb4 Added try catch to example synchronous client requests 2017-07-22 14:05:08 +02: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
3ba494e0ac Minor comment cleanup 2017-07-21 12:54:17 +02:00
eidheim
e3789b6d4d ScopeRunner::stop now returns if count is already negative 2017-07-20 18:32:35 +02:00
eidheim
474fab90f3 Renamed ScopesContinue to ScopeRunner, and some related cleanup 2017-07-20 17:21:19 +02:00
eidheim
8f5a644a2a Minor addition to ScopesContinue test 2017-07-20 11:53:19 +02:00
eidheim
70e8c3104c Renamed ContinueScopes to ScopesContinue 2017-07-20 11:31:58 +02:00
eidheim
06322ab604 Minor cleanup of utility.hpp 2017-07-20 10:10:46 +02:00
eidheim
35f835a67b Cancel handlers feature: replaced readers-writer lock with a spinlock implementation 2017-07-20 10:04:05 +02:00
eidheim
632bb1ec2f Replaced docker image debian:testing with eidheim/testing, and removed boost.thread and boost.date_time from CMakeLists 2017-07-19 12:56:17 +02:00
eidheim
02b34e860b Changed include guards in status_code.hpp 2017-07-19 08:28:55 +02:00
eidheim
e824aba871 Changed include guards in utility.hpp 2017-07-19 08:10:43 +02:00
eidheim
b89f5635a5 Moved request and response message parsing to utility.hpp 2017-07-19 08:03:23 +02:00
eidheim
97dd36c33c Comment cleanup 2017-07-18 22:04:38 +02:00
eidheim
c21768fae9 Server: on session upgrade, remove connection from connections 2017-07-18 18:25:44 +02:00
eidheim
88177647b8 Client: added connections_mutex unlocks when performing reconnect 2017-07-15 15:52:22 +02:00
eidheim
d0e417cdd9 Fixes #143: Content-Length is now initialized to 0 2017-07-15 14:53:38 +02:00
eidheim
291c316a28 Resolved conflicts 2017-07-15 14:46:49 +02:00
eidheim
1f474f377b Made Server::stop exception safe 2017-07-15 14:42:07 +02:00
eidheim
35ea8a950e Client: now lets socket destructor close itself 2017-07-15 10:57:12 +02:00
eidheim
eeaf66cf2c Fixes #142: a new socket is created when a https connection is reconnected, since a second SSL handshake cannot be made on the same socket. Also now removing failed connections from the connections collection. 2017-07-15 08:45:06 +02:00
eidheim
3541dd7879 ::stop now closes connections even though internal io_service is used 2017-07-12 10:03:52 +02:00
eidheim
c03e378e69 Comments addition and cleanup 2017-07-10 11:12:10 +02:00
eidheim
d8b8716a17 Session and Connection cleanup 2017-07-10 10:51:24 +02:00
eidheim
653e24296b Improved includes in utility.hpp 2017-07-09 23:12:02 +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
490e33e2d1 Client::close renamed to Client::stop 2017-07-07 23:35:14 +02:00
eidheim
76f923d7bd Reverted stop changes due to complications when running on one core 2017-07-07 22:38:44 +02:00
eidheim
7d5599b8e5 Added Server::stop test 2017-07-07 22:23:39 +02:00
eidheim
6c6f30302a Fixed io_test (out of stack?), also fixed concurrent sync requests count on request error. 2017-07-07 19:38:55 +02:00
eidheim
06d3c701e1 Fixed io_test (out of stack?), also fixed concurrent sync requests count on request error. 2017-07-07 19:37:20 +02:00
eidheim
28eeef7d65 Synchronous client request calls is now safe to use concurrently 2017-07-07 17:24:30 +02:00
eidheim
fd764d908c Synchronous client request calls is now safe to use concurrently 2017-07-07 17:16:53 +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
53c9ff64c0 Corrected on_error's error_code parameter 2017-07-05 17:42:18 +02:00