Connection:keep-alive

Source: Internet
Author: User
Noun Explanation: http stateless: stateless means that the protocol has no memory capacity for transactional processing, and the server does not know what the client is. On the other hand, there is no connection between opening a Web page on a server and the pages you have previously opened on this server. If you want to implement a shopping cart, you need to record this information with the help of a cookie or session or server-side API (such as NSAPI and ISAPI). Submit this information to the server when you request the server to settle the page when you log on to a website, your login status is also "memorized" by a cookie or session, because the server does not know whether you are logged in or not : The server does not have to allocate memory for each client connection to remember a large number of States, nor to clean up memory when the client loses connectivity, to handle the web business disadvantage more efficiently : Each request of the client needs to carry the corresponding parameters, the server needs to process these parameters reference:/http en.wikipedia.org/wiki/stateless_protocol,http://www.webopedia.com/term/s/stateless.html Keep-Alive: Refer to another article HTTP keep-alive detailed easy to make mistakes:1, HTTP is a stateless connection-oriented protocol, stateless does not mean that HTTP cannot maintain TCP connections, It is not possible to use the UDP protocol for HTTP (no connection)2, from http/1.1 onwards, the default is to open the keep-alive, to maintain the connection characteristics, simply said, when a Web page opened, The TCP connection between the client and the server for transmitting HTTP data does not close, and if the client accesses the Web page on the server again, it will continue to use the established Connection 3, Keep-alive will not remain permanently connected, it has a hold time, This time can be set in different server software (such as Apache)

Connection:keep-alive

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.