Boost logo

Boost Users :

Subject: [Boost-users] SSL client boost::asio::ssl::stream handshake hang up in reconnection
From: jupiter (jupiter.hce_at_[hidden])
Date: 2017-03-09 00:25:35


Hi,

When it was the first time to connect to server, the following code works
fine.

s.lowest_layer().connect(*endpoint_iterator++, error);
s.handshake(boost::asio::ssl::stream_base::client, error);

When the server connection lost then resumed, the client try to run above
code again, the s.lowest_layer().connect(*endpoint_iterator++, error);
returned no error of success, but the
s.handshake(boost::asio::ssl::stream_base::client, error); hang up.
Appreciate any helps?

Thank you.

 - j



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net