Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix checking for server-side closure of HTTPS connections
When an SSL connection times out due to being closed by server, a different error code is returned, so we need to check for it too in was_closed_by_server(). Without this, losing connection was not detected at all when using HTTPS, resulting in "Failed to read HTTP status line" errors whenever the same http_client was reused after more than the server keep alive timeout of inactivity. See microsoft#592.
- Loading branch information