🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2245

Re: Borland C++ 5 TServerSocket TimeOut

#2245
From: Justin L Hudson
Date: Thu, 06 Jul 2006 11:44
41 lines
2456 bytes
It is non-blocking. As a test I am manually disconnecting the client from 
the Ethernet card.  What I am trying to do is replicate an issue out in the 
field where once in a blue moon I will get an error while sending data to 
the clients which causes an Exception Pointer with SendBuf().  I think it is 
from trying to send out on a socket (client) that is no longer available.

Any insights would be appreciated.

Thanks,

Justin

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:44ac15e3$1@newsgroups.borland.com...
>
> "Justin L Hudson" <justin.hudson@bepco.com> wrote in message
> news:44ac0064@newsgroups.borland.com...
>
>> Is there a way to make the TimeOut for a 'OnClientDisconnect'
>> to come up faster?
>
> No.
>
>> The situation is, that when I disconnect a Client from the
>> ServerSocket, it takes a good couple of seconds before the
>> 'OnClientDisconnect' is thrown.
>
> Are you using the TServerSocket in non-blocking mode?  If so, then the 
> speed
> of the component is directly related to the speed in which your message
> queue can process new messages.  Non-blocking sockets use window messages
> internally for their asynchronous notifications.  If it is taking so long
> for the event to trigger, then either 1) the message queue is slow, or 2)
> the OS itself is not detecting the disconnect right away to begin with. 
> How
> EXACTLY are you disconnecting the client?
>
>
> Gambit
>
> 
Technical Details
Message-ID: <44acf764$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44ac0064@newsgroups.borland.com> <44ac15e3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,43b3cea56f3f8096
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Justin L Hudson" <justin.hudson@bepco.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44ac0064@newsgroups.borland.com> <44ac15e3$1@newsgroups.borland.com>
Subject: Re: Borland C++ 5 TServerSocket TimeOut
Date: Thu, 6 Jul 2006 07:44:26 -0400
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 70.225.107.130
Message-ID: <44acf764$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1152186212 70.225.107.130 (6 Jul 2006 04:43:32 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail