Article View: borland.public.cppbuilder.internet.socket
Article #2409Re: ConnectTimeout + Indy9 -> Slowdown?
From: Frank Gruber
Date: Tue, 25 Apr 2006 17:29
Date: Tue, 25 Apr 2006 17:29
23 lines
1901 bytes
1901 bytes
Remy Lebeau (TeamB) schrieb: > If you are making requeries to the same server(s) each time, then you might > consider using HTTP keep-alives, so that the connections are not dropped > after each request and thus don't need to be reconnected each time. Design of the application does not make this possible I think. However I will think about it, thanks. BTW: looking into the sources seem to tell me a different story about the performance difference. LSleepTime := 125; IdGlobal.Sleep(LSleepTime); If a timeout is given the main-thread checks in a loop for a successful connection. At the beginning of the loop there is a delay of 125ms before each check for success. Not to bad for the internet but for intranet apps not optimal. I think I will customize the Indy sources at that point. Regards, Frank.
Technical Details
Message-ID:
<444e5b9b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.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:
<444d23f3$1@newsgroups.borland.com> <444d4b56@newsgroups.borland.com> <444dfc73@newsgroups.borland.com> <444e503c$3@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 Date: Tue, 25 Apr 2006 19:29:58 +0200 From: Frank Gruber <ZJQBBYSESPEZ@spammotel.com> User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: ConnectTimeout + Indy9 -> Slowdown? References: <444d23f3$1@newsgroups.borland.com> <444d4b56@newsgroups.borland.com> <444dfc73@newsgroups.borland.com> <444e503c$3@newsgroups.borland.com> In-Reply-To: <444e503c$3@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.190.219.214 Message-ID: <444e5b9b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1145985947 84.190.219.214 (25 Apr 2006 10:25:47 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news2.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