HTTP persistent connection

HTTP persistent connection

HTTP persistent connections, also called HTTP keep-alive, or HTTP connection reuse, is the idea of using the same TCP connection to send and receive multiple HTTP requests/responses, as opposed to opening a new connection for every single request/response pair.

Advantages

* less CPU and memory usage (because fewer connections are open simultaneously)
* enables HTTP pipelining of requests and responses
* reduced network congestion (fewer TCP connections)
* reduced latency in subsequent requests (no handshaking)
* errors can be reported without the penalty of closing the TCP connection

According to RFC 2616 (page 47), a single-user client should not maintain more than 2 connections with any server or proxy. A proxy should use up to 2*N connections to another server or proxy, where N is the number of simultaneously active users. These guidelines are intended to improve HTTP response times and avoid congestion.

Use in web browsers

Netscape Navigator (since at least 4.05) and Internet Explorer (since at least 4.01) support persistent connections to Web servers and proxies.

Navigator doesn't close persistent connections using timeout. All idling persistent connections are queued. When there is a need to open new persistent connections while connecting to a different server, the idle connections are killed by the browser using some form of LRU algorithm. [http://www.cs.wisc.edu/~cao/papers/persistent-connection.html]

Internet Explorer opens typically 2 persistent connections to each server. Persistent connections time out after 60 seconds of inactivity.

Mozilla Firefox supports persistent connections. The number of simultaneous connections can be customized (per-server, per-proxy, total).

Opera supports persistent connections since 4.0 [http://www.opera.com/pressreleases/en/2000/03/20000328.dml] . The number of simultaneous connections can be customized (per-server, total).

External links

* [http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html RFC 2616 (HTTP/1.1), 8.1 Persistent Connections]
* [http://www.cs.wisc.edu/~cao/papers/persistent-connection.html Persistent Connection Behavior of Popular Browsers (dated)]
* [http://httpd.apache.org/docs/1.3/keepalive.html Apache Keep-Alive Support]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • HTTP — (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • HTTP-Anfrage — HTTP (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • HTTP-Request — HTTP (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • Http — (Hypertext Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Hypertext u. a. Port: 80/TCP HTTP im TCP/IP‑Protokollstapel: Anwendung HTTP Transport …   Deutsch Wikipedia

  • Постоянное HTTP-соединение — HTTP Постоянное соединение · Сжатие · HTTPS Методы OPTIONS · GET · HEAD · POST · PUT · DELETE · TRACE · CONNECT · PATCH Заголовки Cookie · ETag · Location · Referer DNT · X Forwarded For …   Википедия

  • HTTP cookie — HTTP Persistence · Compression · HTTPS Request methods OPTIONS · GET · HEAD · POST · PUT · DELETE · TRACE · CONNECT Header fields Cookie · ETag · Location · Referer DNT · …   Wikipedia

  • Persistent binding — Host based zoning can include WWN or LUN masking, and is typically known as “persistent binding.”In storage networking, ”persistent binding” is an option of zoning.Host based zoning is usually referred to as persistent binding or LUN, [mapping]… …   Wikipedia

  • http — hypertext transfer protocol: a protocol for transferring hypertext documents, the standard protocol for the World Wide Web. * * * in full HyperText Transfer Protocol Standard application level protocol used for exchanging files on the World Wide… …   Universalium

  • Hypertext Transfer Protocol — HTTP Persistence · Compression · HTTPS Request methods OPTIONS · GET · HEAD · POST · PUT · DELETE · TRACE · CONNECT Header fields Cookie · ETag · Location · Referer DNT · …   Wikipedia

  • Chunked transfer encoding — is a data transfer mechanism in version 1.1 of the Hypertext Transfer Protocol (HTTP) in which a web server serves content in a series of chunks. It uses the Transfer Encoding HTTP response header in place of the Content Length header, which the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”