Martin S. Weber | 1 Jun 2009 15:05
Picon

"remote server has closed connection" but fetch successful...

below a transcript of a misc/openoffice3 build:

     1	Connected to sunsite.informatik.rwth-aachen.de.
     2	220 Welcome to SunSITE CEUR
     3	331 Please specify the password.
     4	230 Login successful.
     5	Remote system type is UNIX.
     6	Using binary mode to transfer files.
     7	200 Switching to Binary mode.
     8	250 Directory successfully changed.
     9	250 Directory successfully changed.
    10	250 Directory successfully changed.
    11	250 Directory successfully changed.
    12	250 Directory successfully changed.
    13	local: OOo_3.0.1_src_core.tar.bz2 remote: OOo_3.0.1_src_core.tar.bz2
    14	229 Entering Extended Passive Mode (|||39891|)
    15	150 Opening BINARY mode data connection for OOo_3.0.1_src_core.tar.bz2 (182573274 bytes).
    16	100% |***************************************************|   174 MiB  120.01 KiB/s    00:00 ETA
    17	421 Service not available, remote server has closed connection.
    18	182573274 bytes received in 24:45 (120.01 KiB/s)
    19	ftp: No control connection for command
    20	fetch: Unable to fetch expected file OOo_3.0.1_src_core.tar.bz2
    21	Trying 130.208.16.31:80 ...
    22	Requesting http://ftp.rhnet.is/pub/OpenOffice/stable/3.0.1/OOo_3.0.1_src_core.tar.bz2
    23	100% |***************************************************|   174 MiB  132.30 KiB/s    00:00 ETA
    24	182573274 bytes retrieved in 22:27 (132.30 KiB/s)

Compare lines 18 and 24. it seems although the server closed the connection the
fetch was successful. Maybe pkgsrc should check the potentially fetched distfile
although ftp complains? Or this shouldn't lead to ftp exiting with an error-code?

Dunno what to do actually, just wanted to bring these wasted 22 minutes and 27
seconds (compare line 24) to your attention.

-Martin


Gmane