Boost logo

Boost Users :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2020-12-30 14:34:02


On Wed, Dec 30, 2020 at 6:27 AM Fariya F via Boost-users
<boost-users_at_[hidden]> wrote:
> I see that the call to ssl socket member function shutdown() blocks sometimes forever

You are mixing synchronous and asynchronous operations on the same
socket, which is generally disallowed. Use async_shutdown instead, and
also use a timer to close the socket after some time period (say, 30
seconds).

Regards


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