Article View: borland.public.cppbuilder.internet.socket
Article #1460Re: TIdTCPClient connect timeout problem
From: Dennis Jones
Date: Thu, 25 Jan 2007 21:08
Date: Thu, 25 Jan 2007 21:08
20 lines
1915 bytes
1915 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:45b91996$1@newsgroups.borland.com... > > That is perfectly normal. The Timeout is the maximum amount of time > that Connect() will wait. If the timeout elapses, Connect() will > throw an EIdConnectTimeout exception. If the OS reports an error > before the timeout elapses, Connect() will throw an EIdSocketError or > EIdConnectException exception sooner. Ah, thank you...so "Socket Error 10061" (connection refused) is an OS error that Indy doesn't take into consideration. OK, then is there a way to say, "Keep trying to connect and don't give up for at least X ms?" I'd prefer to have it keep trying for some period of time so that if the server should happen to come up during that timeout period, the connection will be established automatically. Or must I manually poll the server until my desired timeout expires? - Dennis
Technical Details
Message-ID:
<45b91c16$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-mailReferences:
<45b91533$1@newsgroups.borland.com> <45b91996$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5742a33f932be120,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <45b91533$1@newsgroups.borland.com> <45b91996$1@newsgroups.borland.com> Subject: Re: TIdTCPClient connect timeout problem Date: Thu, 25 Jan 2007 13:08:21 -0800 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 71.245.109.58 Message-ID: <45b91c16$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169759254 71.245.109.58 (25 Jan 2007 13:07:34 -0800) 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