flabberghaster
Submitted by flabberghaster in just_post
Submitted by flabberghaster in just_post
Submitted by flabberghaster in just_post
Submitted by flabberghaster in threatposting
Submitted by flabberghaster in just_post
Submitted by flabberghaster in just_post
Submitted by flabberghaster in just_post (edited )
flabberghaster wrote
Reply to You know you've gone deep into being a reactionary when you find yourself asking why they introduced keepalive to HTTP by nitori
IDK I think there is a use for keeping the same stream open if you're a big website serving a lot of clients tbh. Each TCP handshake takes three packets minimum (unless you use TCP fastopen which is its whole own thing), and then if you want SSL on top of that there's even more latency, especially for slow connections, plus the computation, which is small per request but if you're a big site serving a lot of people it adds up. Even if you're not jamming your page full of ten trillion google ads it can add up.
Using the same connection again if you expect the client to make another one pretty soon makes a lot of sense.
I don't do web dev tho so what do I know.