Live data from Hacker News

Stop Wasting Connections, Use HTTP Keep-Alive

lob.com

1–10 of 112 posts

Re: Stop Wasting Connections, Use HTTP Keep-Alive

#3
The hidden danger, mentioned in the article, is if the client sends a second request while the server closes an idle connection. Until http/2, the client can't tell if the server closed the connection before or after it received the request. Many servers send a hint about the idle time out, but few client libraries process it (that I've seen). The larger the latency between server and client, the bigger deal this is.

Re: Stop Wasting Connections, Use HTTP Keep-Alive

#8

The benchmarks say "to make 1000 HTTP requests", but I wanna know for sure if it was `https` (SSL) or not. The SSL connection init costs are real, although SSL session re-use can help there even without keep-alive.

These metrics were collected for HTTPS specifically. I've omitted the URL I used in the benchmark scripts, but am using an HTTPS agent. Scripts live here: https://github.com/mgartner/node-keep-alive-benchmark
Post reply on HN