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
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~
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.
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 usingweb::http::experimental::listener::http_listener_config::set_ssl_context_callback
. When I used thesslyze 0.0.0.0:12346 --regular
command to test the https server, I found that many connections were in theCLOSE_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~