Article View: borland.public.cppbuilder.internet.socket
Article #1467Re: TIdTCPClient connect timeout problem
From: Remy Lebeau (TeamB)
Date: Thu, 25 Jan 2007 21:54
Date: Thu, 25 Jan 2007 21:54
31 lines
1821 bytes
1821 bytes
"Dennis Jones" <nospam@nospam.com> wrote in message news:45b91c16$1@newsgroups.borland.com... > Ah, thank you...so "Socket Error 10061" (connection refused) is an OS error Yes. An "Socket Error" is an error code that the OS reported for a given operation. > that Indy doesn't take into consideration. Yes, it does. It just ignores it, because it doesn't need to do anything with it. > is there a way to say, "Keep trying to connect and don't give up > for at least X ms?" You have to implement that in your own code, such as by calling Connect() in a loop until the desired duration elapses. > I'd prefer to have it keep trying for some period of time There is nothing in Indy for that. > Or must I manually poll the server until my desired timeout expires? Yes. Gambit
Technical Details
Message-ID:
<45b92710$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!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> <45b91c16$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5742a33f932be120 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: <45b91533$1@newsgroups.borland.com> <45b91996$1@newsgroups.borland.com> <45b91c16$1@newsgroups.borland.com> Subject: Re: TIdTCPClient connect timeout problem Date: Thu, 25 Jan 2007 13:54:53 -0800 Lines: 33 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: 75.83.34.171 Message-ID: <45b92710$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169762064 75.83.34.171 (25 Jan 2007 13:54:24 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail