Re: Sockets and timeouts
From: David Schwartz (davids_at_webmaster.com)
Date: 10/26/05
- Next message: Scott Wood: "Re: How to hook a context switch??"
- Previous message: Peter T. Breuer: "Re: Any makefile gurus out there?"
- In reply to: Francois Goudal: "Sockets and timeouts"
- Next in thread: John McCallum: "Re: Sockets and timeouts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Oct 2005 20:02:59 -0700
"Francois Goudal" <francois_nospam_@goudal.net> wrote in message
news:435e565b$0$9486$636a15ce@news.free.fr...
> I'm currently writing my first server software using sockets.
> It currently works fine but :
> When I connect a client to it (just a telnet for example) and then I
> disconnect the RJ45 between my two computers, the server can't detect that
> the link is down and so that the connection have to be closed.
> I just read about handling SIGPIPE but i'm not sure about this.
> Could someone tell me the best way to do that ?
The link being down is not a reason to close the connection. It may come
back a second later. There may be a backup link that is triggered by the
failure of the main link. Robust software does not break a connection
because of the loss of a single link. It only declares a connection dead if
multiple attempts to reach the other computer fail.
DS
- Next message: Scott Wood: "Re: How to hook a context switch??"
- Previous message: Peter T. Breuer: "Re: Any makefile gurus out there?"
- In reply to: Francois Goudal: "Sockets and timeouts"
- Next in thread: John McCallum: "Re: Sockets and timeouts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|