9 Mar
2017
9 Mar
'17
9:37 p.m.
Hi, I am running boost socket communication on Debian 8, the following client code works fine when it connected to the server the first time. s.lowest_layer().connect(*endpoint_iterator++, error); s.handshake(boost::asio::ssl::stream_base::client, error); But when the server connection lost, the client would try to run above code repeatedly until the server connection was resumed, the it passed the first line of s.lowest_layer().connect without error, but the it stuck at s.handshake(boost::asio::ssl::stream_base::client, error), the handshake hang up. What I could be missing here? Thank you.