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

Bug#462866: apt: TCP timeout is the problem !



Package: apt
Version: 0.7.14+b1
Followup-For: Bug #462866

Hi,

I also experienced such problem with ftp servers using apt, aptitude or
bare ftp clients. This is related to TCP timeout setting on your router
(most likely) or at you ISP. The problem with ftp is during data
transfert, nothing is sent to the control channel. This can cause 
connection to expire on your router connection tracking table if timeout 
is set too low. There are thee solutions to this problem :

1) Increase your TCP timeout
2) Use TCP Keepalive
3) Use ftp client with some keep alive method

There is an howto about the kernel settings but the ftp client has to
support it. 

http://www.tldp.org/HOWTO/TCP-Keepalive-HOWTO/

Otherwise, some ftp clients like lftp or filezilla have an
option to regularly send NOOP command on the control channel to prevent
disconnection.

I would like to know whether apt, aptitude have such an option or support
TCP keepalive.

Regards,

Laurent

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Cache-Limit "16777216";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::Default-Release "lenny";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

#deb file:///cdrom/ sarge main contrib non-free

deb ftp://ftp.debian.skynet.be/debian/ lenny main contrib non-free
deb-src ftp://ftp.debian.skynet.be/debian/ lenny main contrib non-free
#deb ftp://ftp.kulnet.kuleuven.be/debian/ lenny main contrib non-free
#deb-src ftp://ftp.kulnet.kuleuven.be/debian/ lenny main contrib non-free
#deb ftp://ftp.fr.debian.org/debian/ lenny main contrib non-free
#deb-src ftp://ftp.fr.debian.org/debian/ lenny main contrib non-free
#deb ftp://ftp.be.debian.org/debian/ lenny main contrib non-free
#deb-src ftp://ftp.be.debian.org/debian/ lenny main contrib non-free

deb ftp://security.debian.skynet.be/debian-security/ lenny/updates main contrib non-free
#deb http://security.debian.org/ lenny/updates main contrib

deb ftp://ftp.debian.skynet.be/debian-volatile lenny/volatile main contrib non-free

deb file:/home/lgrawet debs/

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring   2008.04.16+nmu1 GnuPG archive keys of the Debian a
ii  libc6                    2.7-14          GNU C Library: Shared libraries
ii  libgcc1                  1:4.3.2-1       GCC support library
ii  libstdc++6               4.3.2-1         The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                <none>            (no description available)
ii  aptitude               0.4.11.10-1lenny1 terminal-based package manager
ii  bzip2                  1.0.5-1           high-quality block-sorting file co
ii  dpkg-dev               1.14.22           Debian package development tools
ii  lzma                   4.43-14           Compression method of 7z format in
ii  synaptic               0.62.1            Graphical package manager

-- no debconf information



Reply to: