摘要 |
A TCP connection is opened between a client and a server. An HTTP client request is transmitted from the client to the server over the open TCP connection. If client data is not pending at the server upon receipt of the HTTP client request at the server, the server waits for client data to become available before sending a server response to the client, thereby maintaining the open TCP connection. However, if client data is pending at the server upon receipt of the HTTP client request at the server, a server response including the client data is transmitted from the server to the client over the open TCP connection. Promptly upon receiving the server response, the client transmits a new HTTP client request to the server, thereby ensuring that an open TCP connection is maintained between the client and the server.
|