Connected to the end of the long connection http

Long connection definition:

   HTTP1.1 provides default maintain a long connection (HTTP persistent connection, also translated as persistent connections), the data transfer is complete continue to keep the TCP connection open (do not send RST packets, no handshake), waiting to continue with this in the same domain channels for data transmission

Short connecting definition:

  Default short connection in HTTP / 1.0 in. In other words, the client and the server once for each HTTP operation, once the connection is established, the task will end disconnected.

The difference between the length of the connection:

Long and short connection protocol HTTP connection, the connection is substantially long and short protocol TCP connections.

Note: Keep-Alive not permanently remain connected long connection, it has a hold time, may be set at this time to a different server software (e.g., Apache) in. Achieve a long connection to the client and server support long connection.

tcp three-way handshake:

 

Guess you like

Origin www.cnblogs.com/topass123/p/12376092.html
Recommended