microsoft/cpprestsdk

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

fdgStilla opened this issue · 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?