$ ./guess_the_languageNetworking
Networking · medium · #272

What does HTTP keep-alive save the client?

Connection: keep-alive
  1. Re-sending cookies each time
  2. Encrypting every response
  3. A new TCP handshake per request
  4. Resolving DNS again for each image
Persistent connections reuse one TCP (and TLS) session for many requests, cutting handshake latency. It is the default in HTTP/1.1.
Play Networking ▸