Urs Janßen in de.comm.protocols.misc:
>Marcel Logen <
33320000...@ybtra.de> wrote:
>> Jetzt wäre interessant zu erfahren, ob "ftp" bei jedem Trans-
>> fer einer Datei (innerhalb einer Sitzung) eine neue Datenver-
>> bindung öffnet.
>
>RFC 1123 4.1.2.6 PASV
>| a new PASV command MUST be issued before each transfer command,
>| to obtain a unique port pair.
So kam mir das auch vor bei meinen Tests.
Dann hatte ich das in meiner Antwort
<
news:20231106...@o15.ybtra.de>
an Dich wohl flcash verstanden.
Ich hatte in RFC959 gelesen:
| 3.3. DATA CONNECTION MANAGEMENT
[...]
| Reuse of the Data Connection: When using the stream mode of data
| transfer the end of the file must be indicated by closing the
| connection. This causes a problem if multiple files are to be
| transfered in the session, due to need for TCP to hold the
| connection record for a time out period to guarantee the reliable
| communication. Thus the connection can not be reopened at once.
|
| There are two solutions to this problem. The first is to
| negotiate a non-default port. The second is to use another
^^^^^^^^^^^
| transfer mode.
^^^^^^^^^^^^^
|
| A comment on transfer modes. The stream transfer mode is
| inherently unreliable, since one can not determine if the
| connection closed prematurely or not. The other transfer modes
| (Block, Compressed) do not close the connection to indicate the
| end of file. They have enough FTP encoding that the data
| connection can be parsed to determine the end of the file.
| Thus using these modes one can leave the data connection open
| for multiple file transfers.
>siehe auch RFC 2428 3 EPSV
Danke. Damit hatte ich auch schon gespielt.
Da finde ich aber nichts zur Wiederverwendung der Daten-
verbindung.
Davon abgesehen wäre eine Wiederverwendung der Datenver-
bindung im Zusammenspiel mit "nc" und einer Umleitung in
eine Datei auch eher verkomplizierend, da ich die Datei
ja dann am Ende nach den Outputs der verschiedenen FTP-
Kommandos (LIST, RETR etc.) aufteilen müßte.
Marcel
--
───╮ ╭─╮ ╭─────╮ ╭─────────╮ ╭──╮ ..59..╭─╮
╭─╯ │ ╰─╮ │ │ ╰───╮ ╭──╯ ╭──╯ │ ..56..╭──╯ ╰─╮
╰────╯ ╰─╯ ╰─╮ ╭─╯ │ ..34..╰─╮ │ ╭──╮ ╭─╮ ╭───╯ ╭─╯
╰────╯ ╰──────────╯ ╰──╯ ╰─╯ ╰─╯ ..61..╰─────