Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
HTTPClient and keep alive #448
I'm using vibe.d's requestHTTP method to do stuff with an elasticsearch server. By default, vibe.d sends an HTTP 1.1 request with Connection: keep-alive header. The elasticsearch server returns a response:
Because the response does not contain a keep alive header with a timeout value, HTTPClient assumes that the connection will be closed by the server.
A single line of netstat output looks like (elasticsearch is on port 9200):
You can test this yourself with the following test program.
Based on my reading of http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec188.8.131.52 it seems to me that HTTPClient should assume the connection will stay open when an HTTP 1.1 response is received and there is no connection-token close.
OS: linux Ubuntu 13.10
So I'll leave this issue open as a reminder for those items.