Re: Boost SSL handshake(http_server_sync_ssl) : still reachable memory keeps increasing

Vinnie Falco via Boost-users <[email protected]>
Newsgroups gmane.comp.lib.boost.user
Message-ID <CA+EzHGc8rxXd+MTHzqcdNkkASbDKz7AOocEtL71bW7KFuDZKbg@mail.gmail.com>
On Thu, Feb 3, 2022 at 9:41 AM Sandeep Bhardwaj via Boost-users
<[email protected]> wrote:
> http_server_sync_ssl.cpp

Oh, right. Synchronous APIs have no way to time out. So if the remote
host does not close gracefully (i.e. just slams the connection shut)
then you will be left with a connection object which either has no way
to be destroyed, or has to wait what could be a very long time (up to
2 hours) for the operating system to time out the synchronous read.

Please try the asynchronous example, http_server_async_ssl.cpp and
determine if the problem persists.

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.