Now close connections when Server::stop is called
This commit is contained in:
parent
490e33e2d1
commit
f3f527467f
4 changed files with 72 additions and 32 deletions
|
|
@ -121,7 +121,7 @@ namespace SimpleWeb {
|
|||
public:
|
||||
Connection(std::unique_ptr<socket_type> &&socket) : socket(std::move(socket)) {}
|
||||
|
||||
std::unique_ptr<socket_type> socket;
|
||||
std::unique_ptr<socket_type> socket; // Socket must be unique_ptr since asio::ssl::stream<asio::ip::tcp::socket> is not movable
|
||||
std::mutex socket_close_mutex;
|
||||
bool in_use = false;
|
||||
bool attempt_reconnect = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue