[cs631apue] Question on timeout.
Jan Schaumann
jschauma at stevens.edu
Sun Nov 24 19:58:19 EST 2013
kwang9 <kwang9 at stevens.edu> wrote:
> If we are supposed to handle connection timeout, then how can we
> response to client before the socket is connected if a timeout occurs?
I'm afraid I don't understand the question.
When a client connects, you being a timer. If no valid request is made
within a certain amount of time, you give a suitable error and close the
connection.
If this doesn't answer your question, please try to rephrase it.
-Jan
More information about the cs631apue
mailing list