🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#2171
From: Remy Lebeau (TeamB)
Date: Sat, 05 Aug 2006 19:05
30 lines
1892 bytes
"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
Technical Details
Message-ID: <44d4ec3d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44d48b8a$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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44d48b8a$1@newsgroups.borland.com>
Subject: Re: Trouble with the Last Indy9v with the CB6 vs. old Indy9 (vers. about 2 years ago)
Date: Sat, 5 Aug 2006 12:05:03 -0700
Lines: 32
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: <44d4ec3d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154804797 68.69.17.41 (5 Aug 2006 12:06:37 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail