Commit graph

368 commits

Author SHA1 Message Date
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
eidheim
0f2ab616ec Reverted namespace asio = asio for standalone asio because of gcc error 2017-07-05 14:32:43 +02:00
eidheim
8862c62b60 Added SimpleWeb::asio namespace when using standalone asio as well 2017-07-05 14:32:42 +02:00
eidheim
fa5a3bdc4f Reverted namespace asio = asio for standalone asio because of gcc error 2017-07-05 13:15:01 +02:00
eidheim
bdac513da0 Added SimpleWeb::asio namespace when using standalone asio as well 2017-07-05 12:57:45 +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
16aa958903 Server::Session::timer is now of type unique_ptr instead of shared_ptr 2017-07-04 18:10:58 +02:00
eidheim
57a0c83f64 Slightly improved default_resource example 2017-07-04 14:25:44 +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
0662cbdfb7 Added timeout to Server::Response::send, and some cleanup 2017-07-04 11:21:31 +02:00
eidheim
cc1a8fc614 The function Server::send was moved to Server::Response::send 2017-07-04 10:14:58 +02:00
eidheim
a69e32290f Server::send response parameter changed to const. Some cleanup of examples related to this. 2017-07-04 09:17:36 +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
026f47f195 ClientBase now derives from and use std::enable_shared_from_this 2017-07-03 18:00:24 +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
2bb51a9fb0 Added crt and key files to .gitignore 2017-07-03 14:25:48 +02:00
eidheim
b3a1d48c0a Callback shared_ptr parameters are now shared_ptr& 2017-07-03 14:25:48 +02:00
eidheim
0c9cb000b4 Server::Request::path is split into path and query_string 2017-07-03 14:25:48 +02:00
eidheim
d1798396ac Config::thread_pool_size is no longer checked if io_service is set (that is, when external io_service is used) before calling start 2017-07-03 10:22:44 +02:00
eidheim
b4756d0de3 Removed erroneous content type from examples 2017-07-01 08:40:30 +02:00
eidheim
f746027d37 Added error checks to Base64 encode and decode 2017-06-30 19:55:16 +02:00
eidheim
2d3062265d Added longer Base64 decode/encode test 2017-06-29 12:46:54 +02:00
eidheim
f4b46cd3dc Updated README.md to include standalone asio 2017-06-28 08:27:52 +02:00
eidheim
e50d2fc63a Added .clang-format file and applied style to source files 2017-06-26 15:23:29 +02:00
eidheim
3ee9f8dc52 Added all header files to cmake install target. Also added -O3 to one test on travis 2017-06-26 11:50:21 +02:00