Symptoms: running an in-house debian mirror on lighty I've noticed that sometimes the connection is "reset by peer" while downloading packages. This happens fairly rarely (maybe 1% of the time, meaning 1 in 100 packages will produce the problem). Retrying helps. Also, adding
Acquire::http::Pipeline-Depth "0";
to the apt config - aka, disabling http/1.1 pipelining - seems to be a valid workaround.
However, the APT docs scream about the above as being only needed on non-standard-compliant platforms. Quoting from 'man apt.conf':
"One setting is provided to control the pipeline depth in cases where the
remote server is not RFC conforming or buggy (such as Squid 2.0.2)
Acquire::http::Pipeline-Depth can be a value from 0 to 5 indicating how
many outstanding requests APT should send. A value of zero MUST be specified if
the remote host does not properly linger on TCP con‐ nections - otherwise data
corruption will occur. Hosts which require this are in viola‐ tion of RFC 2068."
tcpdumps are available if anyone's interested.
cheers,
raas