🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ConnectTimeout + Indy9 -> Slowdown?

#2406
From: Remy Lebeau (TeamB)
Date: Mon, 24 Apr 2006 22:01
22 lines
1696 bytes
"Frank Gruber" <ZJQBBYSESPEZ@spammotel.com> wrote in message
news:444d23f3$1@newsgroups.borland.com...

> As soon as I set the ConnectTimeout property of the IdHttp
> component my application is significantly slowing down on
> performance.

What EXACTLY do you consider "significant"?  What are the actual numbers you
are seeing?

In order to implement a connect timeout for a blocking socket, TIdTCPClient
has to spawn a worker thread to handle the timeout.  Your performance issue
is likely caused by that.  When the timeout is not used, and there is no
TIdAntiFreeze component on the form, then no thread is used at all.

> Setting the read timeout property instead has no influence on perfomance.

The ReadTimeout property has nothing to do with the connect timeout.


Gambit
Technical Details
Message-ID: <444d4b56@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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: <444d23f3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,726a735ed01da85d
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: <444d23f3$1@newsgroups.borland.com>
Subject: Re: ConnectTimeout + Indy9 -> Slowdown?
Date: Mon, 24 Apr 2006 15:01:29 -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: <444d4b56@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145916246 68.69.17.41 (24 Apr 2006 15:04:06 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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