Article View: borland.public.cppbuilder.internet.socket
Article #2172Re: Trouble with the Last Indy9v with the CB6 vs. old Indy9 (vers. about 2 years ago)
From: Vladimir Zhuchko
Date: Sat, 05 Aug 2006 20:22
Date: Sat, 05 Aug 2006 20:22
33 lines
2057 bytes
2057 bytes
Remy Lebeau (TeamB) wrote: > "Vladimir Zhuchko" <zhuchko@jinr.ru> wrote in message > news:44d48b8a$1@newsgroups.borland.com... > >> I downloaded the latest indy9 for my CB6, installed it successfully >> and build my old project, contained TIdTCPServer component. >> After that my application can't get information from clients, clients >> can connect, but AThread->Connection->ReadStream(mems, -1, true) >> can read nothing! > > You are specifying true for the AReadUntilDisconnect parameter. There is a > bug in the current snapshot where ReadStream() does not exit properly when > the connection is closed. It keeps looping. Inside of ReadStream(), change > this code: > > if not (E is EIdConnClosedGracefully) or not AReadUntilDisconnect then > begin > raise; > end; > > To this: > > if (E is EIdConnClosedGracefully) and AReadUntilDisconnect then begin > Break; > end else begin > raise; > end; > > > Gambit > > Thank you, I'll try this.
Technical Details
Message-ID:
<44d4fe11$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:
<44d48b8a$1@newsgroups.borland.com> <44d4ec3d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,155ac3f4defc30c0 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 06 Aug 2006 00:22:41 +0400 From: Vladimir Zhuchko <zhuchko@jinr.ru> User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Trouble with the Last Indy9v with the CB6 vs. old Indy9 (vers. about 2 years ago) References: <44d48b8a$1@newsgroups.borland.com> <44d4ec3d$1@newsgroups.borland.com> In-Reply-To: <44d4ec3d$1@newsgroups.borland.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 159.93.195.10 Message-ID: <44d4fe11$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154809361 159.93.195.10 (5 Aug 2006 13:22:41 -0700) Lines: 33 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