Re: Sockets and timeouts

From: David Schwartz (davids_at_webmaster.com)
Date: 10/26/05


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



Relevant Pages

  • Re: Fixing or REPLACING I.E.6
    ... Also, it may be that your connection setups need to be adjusted, as in, ... been idle while on the Internet. ... This is referred to as the Idle Disconnect ... Download the newest version of HiJackThis here: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Disconnect/Reconnect (was: phpMyAdmin)
    ... In MySQL ist es so, daß die Connection einen besonderen Kontext oder Scope darstellt. ... Ein Disconnect entspricht einen ROLLBACK. ... Das gilt für viele grafische Clients - viele von denen machen nach dem Absenden der Query und dem Lesen des Resultsets einen Disconnect und verbinden sich für die folgende Query neu, darunter auch der MySQL Query Browser. ...
    (de.comp.datenbanken.mysql)
  • Re: Plusnet revised Terms and Conditions
    ... This means that we will disconnect any sessions that ... > connection is in active use, ... > sessions ala dial-up except perhaps to assist in load balancing. ... It's a good thing from a security standpoint. ...
    (uk.telecom.broadband)
  • Re: 2 Things: How do you remove a disc from borken 360 and the N adapter isnt what "I" thought it wa
    ... as a dozen times (depending on how many hours I log on XBL). ... thing is every time I switch a game I disconnect from XBL. ... You can clean up a lot of connection problems to XBL by ... upgrading to a new wireless adapter). ...
    (alt.games.video.xbox)
  • Re: Correction
    ... procedure (disconnecting the connection), anyway I had no problems when I ... I was attempting to uncheck the Qos Packet and the only ... disables the questioned ports unless the user intervenes and allows the ... > You Disconnect with a mouse click, ...
    (microsoft.public.windowsxp.messenger)