Package: apt-cacher Version: 1.7.10 Severity: normal Dear Maintainer,
Hello, after adding HTTPS sources ("deb https://deb.packager.io/gh/pkgr/gogs wheezy pkgr") on a client PC I noticed apt-cacher's CPU usage go through the roof. Some poking around led to the discovery that ssl_proxy() doesn't appear to notice EOF on the upstream connection, leading to an infinite loop. I added a debugging message (and a sleep :P) inside the main loop, resulting in: Tue May 19 12:10:56 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=318 count=318 Tue May 19 12:10:56 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=4096 count=4414 Tue May 19 12:10:56 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=1368 count=5782 Tue May 19 12:10:56 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=1081 count=6863 Tue May 19 12:10:56 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=126 count=6989 Tue May 19 12:10:56 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=51 count=7040 Tue May 19 12:10:57 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=141 count=7181 Tue May 19 12:10:57 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=844 count=8025 Tue May 19 12:10:57 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=31 count=8056 Tue May 19 12:10:57 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:57 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:57 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:58 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:59 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:59 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:59 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:59 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 Tue May 19 12:10:59 2015|debug [11968]: from=192.95.29.226 to=::ffff:134.115.83.129 num=0 count=8056 Tue May 19 12:10:59 2015|debug [11968]: from=::ffff:134.115.83.129 to=192.95.29.226 num=0 count=8056 [ad infinitum] Note that sysread() returns 0 on EOF, which is never checked for! Steps to reproduce: - configure apt-cacher to allow HTTPS, eg: allowed_ssl_locations = deb.packager.io, pkgr-production-deb.s3.amazonaws.com - fetch something over HTTPS via apt-cacher, eg: curl -x http://apt-cache:3142/ -D - https://deb.packager.io/gh/pkgr/gogs/dists/wheezy/Release -- System Information: Debian Release: 8.0 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'stable'), (500, 'oldstable') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages apt-cacher depends on: ii debconf [debconf-2.0] 1.5.56 ii ed 1.10-2 ii libdpkg-perl 1.17.25 ii libfilesys-df-perl 0.92-5+b1 ii libfreezethaw-perl 0.5001-1 ii libio-interface-perl 1.07-2+b1 ii libipc-shareable-perl 0.61-1 ii libnetaddr-ip-perl 4.075+dfsg-1+b1 ii libsys-syscall-perl 0.25-2 ii libwww-curl-perl 4.17-1+b1 ii libwww-perl 6.08-1 ii lsb-base 4.1+Debian13+nmu1 ii perl 5.20.2-3 ii ucf 3.0030 ii update-inetd 4.43 Versions of packages apt-cacher recommends: ii libberkeleydb-perl 0.54-2+b1 Versions of packages apt-cacher suggests: ii libio-socket-inet6-perl 2.72-1 -- Configuration Files: /etc/apt-cacher/apt-cacher.conf changed: group = www-data user = www-data /etc/default/apt-cacher 7b55798086dfb263f3c4ba2a6ddfce65 [Errno 2] No such file or directory: u'/etc/default/apt-cacher 7b55798086dfb263f3c4ba2a6ddfce65' -- debconf information: * apt-cacher/mode: daemon -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org