Compare Revisions

Connection management in HTTP/1.x

Change Revisions

Revision 1120479:

Revision 1120479 by bunnybooboo on

Revision 1120485:

Revision 1120485 by bunnybooboo on

Title:
Connection management in HTTP/1.x
Connection management in HTTP/1.x
Slug:
Web/HTTP/Connection_management_in_HTTP_1.x
Web/HTTP/Connection_management_in_HTTP_1.x
Tags:
"Guide" "HTTP" "Performance" "WebMechanics" "Performance"
"Guide" "HTTP" "Performance" "WebMechanics" "Performance"
Comment:
editorial review of summary
editorial review of short-lived
Content:

Revision 1120479
Revision 1120485
n37      The original model of HTTP, and the default one in HTTP/1.0n37      The original model of HTTP, and the default one in HTTP/1.0
>, is <em>short-lived connections</em>. Each HTTP request is perfo>, is <em>short-lived connections</em>. Each HTTP request is compl
>rmed on its own connection; that means that there is a TCP handsh>eted on its own connection; this means a TCP handshake happens be
>ake happening before each HTTP request, and these are serialized.>fore each HTTP request, and these are serialized.
n40      The TCP handshake itself is time-consuming, but a TCP connen40      The TCP handshake itself is time-consuming, but a TCP conne
>ction adapts itself to its load and becomes more efficient with l>ction adapts to its load, becoming more efficient with more susta
>onger-lived connections. This model doesn't make use of this feat>ined (or warm) connections. Short-lived connections do not make u
>ure of TCP and performance is degraded from the optimum by always>se of this efficiency feature of TCP, and performance degrades fr
> transmitting over cold connections, rather than over warm ones.>om optimum by persisting to transmit over a new, cold connection.
n43      This model is the default model used with HTTP/1.0 (that isn43      This model is the default model used in HTTP/1.0 (if there 
> it is the one used if there is no {{HTTPHeader("Connection")}} h>is no {{HTTPHeader("Connection")}} header, or if its value is set
>eader, or if its value is set to <code>close</code>. With HTTP/1.> to <code>close</code>). In HTTP/1.1, this model is only used whe
>1, this model is only used if the {{HTTPHeader("Connection")}} he>n the {{HTTPHeader("Connection")}} header is sent with a value of
>ader is sent with a value of <code>close</code>.> <code>close</code>.
t47        Unless dealing with a very old system that doesn't support47        Unless dealing with a very old system, which doesn't supp
>t persistent connection, there is no compelling reason to use thi>ort a persistent connection, there is no compelling reason to use
>s model.> this model.

Back to History