AW: [En-Nut-Discussion] Disconnect lost telnet session

Harald Kipp harald.kipp at egnite.de
Mon Oct 11 19:11:23 CEST 2004


   u_long rx_to = 10000;

   NutTcpSetSockOpt(sock, SO_RCVTIMEO, &rx_to, sizeof(rx_to));

sets the receive timeout to 10 seconds.

Harald

At 18:09 11.10.2004 +0200, you wrote:
> > i don't think th OP meant an "silently passed by" tcp connection but
> > rather a connection closed the usual way, which of course triggers the
> > usal FIN/ACK handshake thingie. :)
>No, I meant that lost connection. If I close the session cleanly all works
>fine. But if I e.g. just terminate my Telnetclient, Nut hangs forever. A
>simple Timeout would be enough. If there is more than a minute or so no
>traffic on the socket shut it down. But I don't know how.
>
>bye
>Thorsten
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list