We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c56509 commit 9c9f833Copy full SHA for 9c9f833
1 file changed
net/http/client.cpp
@@ -263,6 +263,7 @@ class ClientImpl : public Client {
263
resp.reset((char *)buf, kMinimalHeadersSize, true, sock.release(), true, req.verb());
264
}
265
if (op->resp.receive_header(tmo.timeout()) != 0) {
266
+ sock->close();
267
req.reset_status();
268
LOG_ERROR_RETURN(0, ROUNDTRIP_NEED_RETRY, "read response header failed");
269
0 commit comments