http/1.1 "Persistent" connection

Source: Internet
Author: User

First, persistent connection

(1) http/1.1 gradually stopped supporting the keep-alive connection, replacing it with an improved design called persistent connection (persistent connection), with the same purpose as the keep-alive connection, but with a better working mechanism.
(2) http/1.1 persistent connection is activated by default, and the application must add a Connection:close header to close the connection after the transaction finishes
(3) Client and server can close idle connection at any time

Ii. Limitations of persistent connections

(1) After sending the Connection:close request header, the client will no longer be able to send more requests on that connection.
(2) The connection can persist only if all messages on the connection have the correct custom message length (content-length)
(3) The http/1.1 agent must be able to manage the persistent connection with the client and the server separately
(4) http/1.1 Proxy Server should not establish a persistent connection with the http/1.0 client
(5) A client can maintain up to two persistent connections to any server or agent in case the server is overloaded

http/1.1 "Persistent" connection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.