Article View: borland.public.cppbuilder.internet.socket
Article #2244Re: Borland C++ 5 TServerSocket TimeOut
From: Remy Lebeau (TeamB)
Date: Wed, 05 Jul 2006 19:36
Date: Wed, 05 Jul 2006 19:36
23 lines
1840 bytes
1840 bytes
"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:
<44ac15e3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44ac0064@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <44ac0064@newsgroups.borland.com> Subject: Re: Borland C++ 5 TServerSocket TimeOut Date: Wed, 5 Jul 2006 12:36:46 -0700 Lines: 25 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: <44ac15e3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152128483 68.69.17.41 (5 Jul 2006 12:41:23 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail