cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

Windows: error 12152 when the connection is closed by the server before sending the response

Open fdgStilla opened this issue 2 years ago • 0 comments

How to reproduce:

  • send a request using cpprestsdk
  • in the server, close the connection before sending the response (eg because of an internal timeout) => the client receive a 12512 error "The server returned an invalid or unrecognized response."

This is really confusing, is it possible to get a better error message, explaining the connection was closed?

fdgStilla avatar Apr 05 '23 13:04 fdgStilla