Boost logo

Boost :

Subject: [boost] boost::asio::ssl::stream handshake hang up in reconnection
From: jupiter (jupiter.hce_at_[hidden])
Date: 2017-03-09 21:37:34


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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at