Article View: borland.public.cppbuilder.internet.socket
Article #1768Re: Indy9 - BCB5 - FTP server - access violation errors
From: Hanne B
Date: Thu, 09 Nov 2006 08:15
Date: Thu, 09 Nov 2006 08:15
36 lines
2198 bytes
2198 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:4552371e$3@newsgroups.borland.com... > > "Hanne B" <hb@aeromark.dk> wrote in message > news:4551ac92@newsgroups.borland.com... > >> If a client is connected to the FTP server and retriving a huge file, >> then >> I get EAaccessViolation errors if I want to disconnect the client by >> the following code > > Why are you disconnecting the client manually? You should not be doing > that. TIdFTPServer is currently not designed to handle server-side > disconnections of transfers that are in progress. > > At the very least, you should be disconnecting the transfer's DataChannel > first, so that it can send an error message back to the FTP client > indicating that the transfer has failed. > > > Gambit > > > I have a FTP server where a lot of clients connect and pick up files. If they are interrupted while they are retrieving files (and I don't get the disconnected event for the client), then they will stay "connected" and take up memory - if I cannot disconnect them. What exactly do you want me to do to disconnect the DataChannel first ? and how do I send an error message to the FTP client ? Hanne
Technical Details
Message-ID:
<4552e3ba$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4551ac92@newsgroups.borland.com> <4552371e$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,942ca0ee33498431 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Hanne B" <hb@aeromark.dk> From: "Hanne B" <hb@aeromark.dk> Newsgroups: borland.public.cppbuilder.internet.socket References: <4551ac92@newsgroups.borland.com> <4552371e$3@newsgroups.borland.com> Subject: Re: Indy9 - BCB5 - FTP server - access violation errors Date: Thu, 9 Nov 2006 09:15:53 +0100 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 83.91.195.110 Message-ID: <4552e3ba$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1163060154 83.91.195.110 (9 Nov 2006 00:15:54 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail