You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I Add the "Connection: close" header to the request, but my server(opentsdb) don't close connection active, so client stucks when calling body(response).
The rfc2616 also don't demand that server must close connection active when request with header "Connection: close". http://www.ietf.org/rfc/rfc2616.txt
_8.1.2.1 Negotiation
An HTTP/1.1 server MAY assume that a HTTP/1.1 client intends to
maintain a persistent connection unless a Connection header including
the connection-token "close" was sent in the request. If the server
chooses to close the connection immediately after sending the
response, it SHOULD send a Connection header including the
connection-token close._
Can we add active close for http client when response finished?