TCP Connections
Before any data packet is sent, a connection is established
- Use SYN packet to establish connection
- Use FIN packet to close the connection
Handling of HTTP packets
- Old version:
- a separate TCP connection for each HTTP Request
- New version:
- Open a connection when a request (first HTTPP Request) send to the server
- Leave the connection open for all subsequent HTTP requests to the same server
- Close the connection when the session ends