🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Would Indy's TIdTCPServer have any problem with connections I never read from?

#2060
From: Lesley Anne
Date: Wed, 30 Aug 2006 20:04
12 lines
1735 bytes
> Why just just read inside the server's OnExecute event?
> It is triggered on a per-connection basis.

When is that triggered?  It sounded from the help file as though it were 
triggered when a new thread is started, which I assume would be only when a 
connection is first made.  Is it triggered again after that?

And since the OnExecute event handler itself is in whichever thread the 
TIdTCPServer component is in (the main application thread if the server is 
on the form) rather than inside the individual thread that it references, 
how do you keep one connection from blocking all others if that's where the 
reading is done?
Technical Details
Message-ID: <44f5ef4f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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: <44f480ff@newsgroups.borland.com> <44f49d01$1@newsgroups.borland.com> <44f5c67a$1@newsgroups.borland.com> <44f5e682$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c51ec25c5d4e68e1
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Lesley Anne" <mspfila-ng@yahoo.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44f480ff@newsgroups.borland.com> <44f49d01$1@newsgroups.borland.com> <44f5c67a$1@newsgroups.borland.com> <44f5e682$1@newsgroups.borland.com>
Subject: Re: Would Indy's TIdTCPServer have any problem with connections I never read from?
Date: Wed, 30 Aug 2006 16:04:23 -0400
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 144.160.5.25
Message-ID: <44f5ef4f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1156968271 144.160.5.25 (30 Aug 2006 13:04:31 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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