🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdTCPClient connect timeout problem

#1461
From: Remy Lebeau (TeamB)
Date: Thu, 25 Jan 2007 20:57
30 lines
1771 bytes
"Dennis Jones" <nospam@nospam.com> wrote in message
news:45b91533$1@newsgroups.borland.com...

> When I call Connect(), I pass a timeout value (such as 5000), but
> the timeout value seems to have no effect.

Yes, it does.

> When the connection cannot be made, the Connect call throws an
> exception in about 1 second

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.

> What am I doing wrong?

Nothing at all.

> The default timeout value specified in the Connect method is
> 0xFFFFFFFF (-1).  Is that supposed to mean "inifinite" or "no
timeout?"

Yes.


Gambit
Technical Details
Message-ID: <45b91996$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.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: <45b91533$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>
Subject: Re: TIdTCPClient connect timeout problem
Date: Thu, 25 Jan 2007 12:57:22 -0800
Lines: 32
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: <45b91996$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169758614 75.83.34.171 (25 Jan 2007 12:56:54 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.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