Right now, I think that the connection remains open until the HTTP server realizes that it's not being used. With a small amount of connection (~10) it really hurts performance.
It's part of the protocol that the server closes the connection when it's done producing the response.
Just a side note: it's possible to go far beyond what a6c083e brought by closing the connection earlier, but I suspect that it would be really dangerous.
Right now, I think that the connection remains open until the HTTP server realizes that it's not being used. With a small amount of connection (~10) it really hurts performance.
It's part of the protocol that the server closes the connection when it's done producing the response.