TCP for HTTP protocol but only one-way connection is established

Source: Internet
Author: User

Irontech
Links: https://www.zhihu.com/question/20085992/answer/71742030
Source: Know
Copyright belongs to the author, please contact the author for authorization.

The following explanation is copy from Quora, and the answer is wonderful.
HTTP uses TCP connection. But the HTTP uses only one TCP connection.
In HTTP, client initiates an HTTP session by opening a TCP connection to the HTTP server with which it wishes to Communica Te. It then sends request messages to the server, each of which specifies a particular type of action that the user of the HTT P client would like the server to take. The server responds to the client's request and sends the data which he wants. But the HTTP uses only one TCP connection i.e. from client to server, the there is no TCP connection from the server to the client. The server sends data to client there was no guarantee that the client was going to get it. If client does not get the data in the TTL (Time to live), it again make a request for the data.
We need a reliable connection from client to server so that server can get all the requests made by the client. There is no need of reliable connection from server to client. If client doesn ' t get the data what he requests in the time, he again makes requests for the data.

TCP for HTTP protocol but only one-way connection is established

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.