FTP - Transfer abbrechen

German support forum

Moderators: white, Hacker, Stefan2

Post Reply
User avatar
Wörsty
Junior Member
Junior Member
Posts: 6
Joined: 2003-10-27, 07:59 UTC
Location: Berlin
Contact:

FTP - Transfer abbrechen

Post by *Wörsty »

Hallo,

wenn ich mit dem Total Commander einen FTP-Transfer (upload) abbreche, wird kein ABOR gesendet.
Warum nicht?

Mein Problem ist dann, dass die unvollständige Datei auf dem Server liegen bleibt. Dies möchte ich aber nicht. Der FTP-Server weiß aber nicht, dass der Ttransfer abgebrochen wurde und denkt die Datei ist okay und schreibt es auch so in das Logfile.

Wenn ich den TotalCommander mit dem Taskmanager kille "geht es".

Was meint ihr dazu?
ABORT (ABOR)

This command tells the server to abort the previous FTP
service command and any associated transfer of data. The
abort command may require "special action", as discussed in
the Section on FTP Commands, to force recognition by the
server. No action is to be taken if the previous command
has been completed (including data transfer). The control
connection is not to be closed by the server, but the data
connection must be closed.

There are two cases for the server upon receipt of this
command: (1) the FTP service command was already completed,
or (2) the FTP service command is still in progress.

In the first case, the server closes the data connection
(if it is open) and responds with a 226 reply, indicating
that the abort command was successfully processed.

In the second case, the server aborts the FTP service in
progress and closes the data connection, returning a 426
reply to indicate that the service request terminated
abnormally. The server then sends a 226 reply,
indicating that the abort command was successfully
processed.
Wörsty
____________________
Danke, dass du das liest
User avatar
Cineatic
Power Member
Power Member
Posts: 871
Joined: 2003-06-02, 14:09 UTC

Post by *Cineatic »

Das die Datei unvollständig auf dem Server zurückbleibt, hat den Vorteil, das man sie zu einem späteren Zeitpunkt noch "vervollständigen" kann. Und wenn man den Transfer abbricht, stellt es doch kein Problem dar, die "unfertige" Datei wieder vom Server zu löschen.
User avatar
Wörsty
Junior Member
Junior Member
Posts: 6
Joined: 2003-10-27, 07:59 UTC
Location: Berlin
Contact:

Post by *Wörsty »

Cineatic wrote:Das die Datei unvollständig auf dem Server zurückbleibt, hat den Vorteil, das man sie zu einem späteren Zeitpunkt noch "vervollständigen" kann. Und wenn man den Transfer abbricht, stellt es doch kein Problem dar, die "unfertige" Datei wieder vom Server zu löschen.
Darauf habe ich gewartet :lol:
Dafür möche ich aber am Server die Direktive DeleteAbortedStores on/off benutzen :idea:
Das mit dem nachträglichen Löschen geht aber nur, wenn man auch das Recht hat, Dateien zu löschen...
Wörsty
____________________
Danke, dass du das liest
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Dafür möche ich aber am Server die Direktive DeleteAbortedStores on/off benutzen
Nicht jeder hat aber die Moglichkeit an den Einstellungen des Servers auf den er etwas hochladt herumzubasteln...

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Wörsty
Junior Member
Junior Member
Posts: 6
Joined: 2003-10-27, 07:59 UTC
Location: Berlin
Contact:

Post by *Wörsty »

Wie wär's denn dann mit einer Option?
Checkbox: Sende FTP-ABOR wenn Transfer abgebrochen wird.
Wörsty
____________________
Danke, dass du das liest
Post Reply