Post

Sooraj
Sooraj@suryanox7·
Web devs: Why do browsers send Connection: keep-alive when TCP already keeps connections alive? 🤔
Sooraj tweet media
English
49
3
70
3.2K
Devdeep
Devdeep@_devdeep·
@suryanox7 Actually, the header is an HTTP‑level signal. TCP may keep the socket open, but without Connection: keep-alive a server can legally close it after each response, especially with HTTP/1.0 clients.
English
1
0
1
162
Sooraj
Sooraj@suryanox7·
@_devdeep Exactly. TCP keeps the socket alive, while Connection: keep-alive tells HTTP to reuse it instead of closing it after the response.
English
0
0
0
123
Paylaş