๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8309

Re: socket disconnect detection.

#8309
From: Remy Lebeau (TeamB)
Date: Wed, 10 Nov 2004 23:54
20 lines
1895 bytes
"Johan Elms๏ฟฝter" <johan.elmsater@bulletinboard.nu> wrote in message
news:41929214@newsgroups.borland.com...

>   blocking sockets.

A blocking socket will not detect an abnormal disconnect until the
underlying socket stack itself decides that the socket is no longer valid.
That will not happen right away.  In fact, it could take a long while.  The
stack will not be able to invalidate the socket until it begins timing out
internally.  Those timeouts are fairly large by default.

>    I'm using lot's of clients, and I dont want the network
> traffic to be to high just for sending "keep alive" messages.

That is exactly what you should be doing, though.  That is the only reliable
way to detect an abnormal disconnect in a timely fashion.


Gambit
Technical Details
Message-ID: <4192a9e9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <418ff5e3@newsgroups.borland.com> <419001bd$1@newsgroups.borland.com> <41929214@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6ce82371864e0ae4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <418ff5e3@newsgroups.borland.com> <419001bd$1@newsgroups.borland.com> <41929214@newsgroups.borland.com>
Subject: Re: socket disconnect detection.
Date: Wed, 10 Nov 2004 15:54:46 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4192a9e9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100130793 68.69.17.41 (10 Nov 2004 15:53:13 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail