logoalt Hacker News

austin-cheney • yesterday at 5:41 PM • 2 replies • view on HN

Keep alive is not default behavior, so my prior comment was still more correct.


Replies

tredre3 • yesterday at 6:33 PM

All webservers (apache, nginx, litespeed, caddy) have keep-alive enabled by default. All browsers also support it. Whether it's actually used/negotiated on most connections, I don't know, and if you want to be pedantic you're right that it can't be default by definition since you need the header to use it. But I suspect it actually is used for most connections nowadays.

Multiplexing is the default in HTTP/2 and 3. So you're still wrong.

➕ show 1 reply
cowlevel • yesterday at 7:13 PM

Keepalive is literally the default. You have to send an additional header if you don't want to use keepalive.