🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy10 usage

#491
From: Remy Lebeau (TeamB)
Date: Wed, 05 Mar 2008 05:46
22 lines
1973 bytes
"Mike Ruskai" <BUTthannydI@DONTearthlinkLIKE.netSPAM> wrote in message 
news:ch7ss31acm13alsqj2s3utjhnbusnks1a9@4ax.com...

> ReadBytes() throws an EIdConnClosedGracefully when the socket
> has been closed by the remote after all data had been sent.

It should not be.  The only time it should be raising that exception is if 
you are trying to read more than was actually sent.  Otherwise, ReadBytes() 
should be returning the full requested data without raising an exception, 
and then the next read/write operation will detect the disconnect 
afterwards.  Looking at the source, I do not see how that exception could be 
occuring.

> So, I have to do something like this to read all data:

No, you should not have to do that.  If what you describe is actually 
happening (which, looking at the soure code, I don't see how it can), then 
it is a bug that needs fixing.


Gambit 
Technical Details
Message-ID: <47ce339a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <ghsqs35tipni65rjlntjpl7hgi6f1bv1g8@4ax.com> <47cd89bb$1@newsgroups.borland.com> <tefrs3lpnfkk0arr2qa3vospikaj3j491h@4ax.com> <47cdc920@newsgroups.borland.com> <tu0ss39uaq8j35if50r88eflpsf5nvs431@4ax.com> <ch7ss31acm13alsqj2s3utjhnbusnks1a9@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ea086d952e8cb041
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <ghsqs35tipni65rjlntjpl7hgi6f1bv1g8@4ax.com> <47cd89bb$1@newsgroups.borland.com> <tefrs3lpnfkk0arr2qa3vospikaj3j491h@4ax.com> <47cdc920@newsgroups.borland.com> <tu0ss39uaq8j35if50r88eflpsf5nvs431@4ax.com> <ch7ss31acm13alsqj2s3utjhnbusnks1a9@4ax.com>
Subject: Re: Indy10 usage
Date: Tue, 4 Mar 2008 21:46:00 -0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 75.83.29.61
Message-ID: <47ce339a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204695962 75.83.29.61 (4 Mar 2008 21:46:02 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail