microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k stars 1.65k forks source link

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

Open yangbohust opened 2 years ago

yangbohust commented 2 years ago

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~

barcharcraz commented 2 years ago

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