Socket::reconfigure_socket called on connection to apply options

'TCP_NODELAY' is set automatically on connection now.
This commit is contained in:
Fred Nicolson
2016-12-31 11:14:26 +00:00
parent 2a5d960e56
commit e0e956cf78
4 changed files with 23 additions and 3 deletions
+4 -1
View File
@@ -152,9 +152,11 @@ namespace fr
return Socket::Status::VerificationFailed;
}
//Update members
//Update state
is_connected = true;
remote_address = address + ":" + port;
reconfigure_socket();
return Socket::Status::Success;
}
@@ -167,6 +169,7 @@ namespace fr
{
is_connected = true;
ssl_socket_descriptor = std::move(context);
reconfigure_socket();
}
bool SSLSocket::has_data() const