🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Trouble with the Last Indy9v with the CB6 vs. old Indy9 (vers.about 2 years ago)

#2173
From: Vladimir Zhuchko
Date: Sun, 06 Aug 2006 06:58
40 lines
2227 bytes
Vladimir Zhuchko wrote:
> 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.
I tested this, now the application isn't freezing, but ReadStream does 
not working yet. I returned to the old version.
Technical Details
Message-ID: <44d59315$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44d48b8a$1@newsgroups.borland.com> <44d4ec3d$1@newsgroups.borland.com> <44d4fe11$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 10:58:30 +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> <44d4fe11$1@newsgroups.borland.com>
In-Reply-To: <44d4fe11$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: <44d59315$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154847509 159.93.195.10 (5 Aug 2006 23:58:29 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail