Quantcast

boost::asio::ssl::stream handshake hang up in reconnection

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

boost::asio::ssl::stream handshake hang up in reconnection

Boost - Dev mailing list
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.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Loading...