Re: TIdFTPServer, Indy 10, ABORting transfers

Giganews Newsgroups
Subject: Re: TIdFTPServer, Indy 10, ABORting transfers
Posted by:  Nicklas Bergfeldt (nicklas.bergfel…
Date: Sat, 10 Dec 2005

More info:
It seems like TotalCommander sends an
erroneous ABOR command (it includes some junk-letters):
e.g. "ÿôòABOR"

Of course this is TotalCommander's fault... but the server should not
hang just because the client don't follow the protocol?

I tested with SmartFTP (which sends a correct ABOR command) and that
worked perfectly...

Hence, it would be great if you could make some sort of idiot-proof
handling of the ABOR command...

... I did that myself in Indy9 where the OnNoCommandHandler was
available, but that's not in Indy10?
  - And it also seems like the design has changed so that the loop that
is sending the file is also checking for incomming commands during

Best regards,

Nicklas Bergfeldt wrote:
> Hi,
> I'm using the latest Indy 10 (downloaded just a few hours ago) and have
> a few problems with aborting the data connection...
> First of all, in the simplest case, I want to just abort the transfer
> from the client (TotalCommander) I'm using to connect to Indy... but
> Indy get stuck in an infinite loop in:
> function TIdFTPServer.ReadCommandLine(AContext: TIdContext): string;
>  - The server completely halts and won't function any more...
> Then, when the above has been fixed, I would also like to be able to
> abort a transfer from the server side...
>  - I cannot find any good methods for achieving that :-(
> Please help me...
> Best regards,
> Nicklas


In response to

TIdFTPServer, Indy 10, ABORting transfers posted by Nicklas Bergfeldt on Sat, 10 Dec 2005