Article View: borland.public.cppbuilder.internet.socket
Article #2097Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost)
From: Remy Lebeau (TeamB)
Date: Fri, 11 Aug 2006 22:41
Date: Fri, 11 Aug 2006 22:41
26 lines
2221 bytes
2221 bytes
"Skaarak" <skaarak@NOakamailSPAM.com> wrote in message news:44dcd9f4$1@newsgroups.borland.com... > Okay, put in the try/catch block where located, and the FTP2->List > command catchs an exception and my function ends. EIdConnClosedGracefully is only thrown when a socket is directly accessed after it has been closed by the other party, and even then only after the TIdTCPConnection.InputBuffer property has been emptied or otherwise cannot satisfy anymore read operations. Remember that file transfers and directory listings use a second socket connection. After applying the fix for ReadSteam() (which List() calls on the second connection to download the listing data), the only remaining way for List() to throw EIdConnClosedGracefully is if the main command connection is being closed by the server, since ReadStream() will catch and discard the EIdConnClosedGracefully on the second data connection in this situation. > Is there any way to go from Indy 9 to 8 easily? No. Gambit
Technical Details
Message-ID:
<44dd07f3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44da0822$1@newsgroups.borland.com> <44da0c3a$1@newsgroups.borland.com> <44da527f@newsgroups.borland.com> <44da5f29$1@newsgroups.borland.com> <44da6c13$1@newsgroups.borland.com> <44da795d@newsgroups.borland.com> <44dbb9a3$1@newsgroups.borland.com> <44dbcbbb$1@newsgroups.borland.com> <44dca1d2@newsgroups.borland.com> <44dcc77f$1@newsgroups.borland.com> <44dcd9f4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cd863af49bc3aa8d 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: <44da0822$1@newsgroups.borland.com> <44da0c3a$1@newsgroups.borland.com> <44da527f@newsgroups.borland.com> <44da5f29$1@newsgroups.borland.com> <44da6c13$1@newsgroups.borland.com> <44da795d@newsgroups.borland.com> <44dbb9a3$1@newsgroups.borland.com> <44dbcbbb$1@newsgroups.borland.com> <44dca1d2@newsgroups.borland.com> <44dcc77f$1@newsgroups.borland.com> <44dcd9f4$1@newsgroups.borland.com> Subject: Re: Indy 9 TIdFTP EIdConnClosedGracefully etc.... (repost) Date: Fri, 11 Aug 2006 15:41:42 -0700 Lines: 28 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: <44dd07f3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155336179 68.69.17.41 (11 Aug 2006 15:42:59 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail