[cs631apue] Question on timeout.
kwang9
kwang9 at stevens.edu
Sun Nov 24 22:56:12 EST 2013
Think I've figured out what happened here. Thanks very much for replying
!
在 2013-11-24 19:58,Jan Schaumann 写道:
> 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
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
More information about the cs631apue
mailing list