if as you said, use select to specify the timeout value. in consquence, when the client send a request to the server, the server receive the request and handle it. if the process, the server is handle the request, spend a long time, which is longer the the timeout value, so the client will not wait for the response from the server.
when the client then send a request again, and then it will receive the response that the server would give at the previous time. |