cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

http_listener does not gracefully handle remotely-closed keepalive connections (Linux/ASIO)

Open yangbohust opened this issue 3 years ago • 1 comments

Similar question to issue #592 http_client does not gracefully handle remotely-closed keepalive connections (Linux/ASIO)

I used http_listener to start an https server with ssl config using web::http::experimental::listener::http_listener_config::set_ssl_context_callback. When I used the sslyze 0.0.0.0:12346 --regular command to test the https server, I found that many connections were in the CLOSE_WAIT state and could not exit.

The boost version I am using is 1.74.0

Is this issue similar to issue 592? Is there any fix for this issue? Thank you very much~

yangbohust avatar Feb 08 '22 11:02 yangbohust

Please do not use the server component in production ever. It's really only designed for testing cpprestsdk itself, and has never been supported for use in any other scenario.

That said, this may be a real bug

barcharcraz avatar Feb 15 '22 04:02 barcharcraz