Boost logo

Boost Users :

Subject: [Boost-users] Reconnecting a SSL socket correctly
From: David Demelier (markand_at_[hidden])
Date: 2017-10-18 11:26:25


Hello,

I'm trying to reconnect a SSL socket (using ssl::stream with tcp::socket) that has been closed only remotely. It looks like a shutdown on my client causes "stream truncated" error so I have no idea how can I connect my client socket again.

I was thinking of just creating a new instance but the stream class is not copyable.

Do you have any recommandations?

Regards,

-- 
David

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