The release process of tcp connection is: first the party that actively releases sends a connection release request; then the party that releases passively sends a confirmation message after receiving the request sent by the active release; then the passive releasing party sends the connection release again request message; finally, the active releasing party only needs to send a confirmation message after receiving the release request from the passive releasing party.
The release process of tcp connection is:
1. After the communication is completed, the TCP connection is waved four times release process.
#2. The party actively releasing sends a connection release request. (Waving for the first time)
#3. After receiving the request for active release, the party that releases passively sends a confirmation message. (Waving for the second time)
4. After waiting for a period of time, the passive releasing party sends the connection release request message again. (Waving for the third time)
5. The active releasing party sends a confirmation message after receiving the release request from the passive releasing party. (Waving for the fourth time)
#6. The connection release is completed.
Related learning recommendations: PHP programming from entry to proficiency
The above is the detailed content of What is the release process of tcp connection?. For more information, please follow other related articles on the PHP Chinese website!