[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#140443: apt: broken on FTP socket timeouts



Package: apt
Version: 0.5.4

As it's Easter today, my DSL connection is slightly (?) unreliable.

Thus when I tried to do my usual "apt-get update", I got frequent
"data socket timed out".
Then on the next "apt-get update", at first it printed the last byte count of
the Package to be downloaded, but then it suddently resetted back to 0
and redownloaded to whole file.

Not so if you manage to Ctrl-C or kill apt-get update *before*
the "data socket timed out" happens.
Then it properly resumes file download at the byte count where it left off.

I assume that it has to do with time stamping of the package file.
My suspicion is that maybe a "data socket timed out" abort doesn't update
the downloaded file timestamp properly, whereas Ctrl-C or kill does.
Thus apt-get notices that there's a partial file and prints its byte count,
but an instant later it recognizes that the time stamp is incompatible
and proceeds with redownloading the whole file.

In short: the "data socket timed out" abort part should probably be fixed.

-- 
Andreas Mohr                        Stauferstr. 6, D-71272 Renningen, Germany
Tel. +49 7159 800604                http://home.arcor.de/andi.mohr/


-- 
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: