Your message dated Mon, 05 Mar 2012 21:47:31 +0000
with message-id <[email protected]>
and subject line Bug#662694: fixed in debmirror 1:2.11
has caused the Debian Bug report #662694,
regarding debmirror: apply timeout to http and hftp download
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
662694: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662694
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debmirror
Version: 1:2.10
Severity: normal
Tags: patch

Dear Maintainer,

I use debmirror behind a proxy chain (with virus scanner) and had
problems on downloading big files (mostly orig tarballs or dbg
packages). The virus scan takes to long and debmirror report a timeout.
So I take a look at the source code and realize, that the '--timeout'
option only apply to rsync and ftp downloads. I've attach a patch to fix
this for http and hftp download.
Now the default timeout for http and hftp is set to 500 seconds, instead
of the default timeout in LWP::UserAgent, which is 180 seconds.

Cheers,
Christoph
From 40d309145d10751125dc0d854394a4b649271e8f Mon Sep 17 00:00:00 2001
From: Christoph Goehre <[email protected]>
Date: Mon, 5 Mar 2012 20:57:32 +0100
Subject: [PATCH] apply timeout to http and hftp download

LWP::UserAgent has a default timeout of 180 seconds
---
 debmirror |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/debmirror b/debmirror
index b246a9d..fd7dfa4 100755
--- a/debmirror
+++ b/debmirror
@@ -817,6 +817,7 @@ sub init_connection {
 
   /^http$/ && do {
     $ua = LWP::UserAgent->new(keep_alive => 1);
+    $ua->timeout($timeout);
     $ua->proxy('http', $ENV{http_proxy}) if $ENV{http_proxy};
     $ua->proxy('http', $proxy) if $proxy;
     $ua->show_progress($progress);
@@ -826,6 +827,7 @@ sub init_connection {
   /^ftp$/ && do {
     if ($proxy || $ENV{ftp_proxy}) {
       $ua = LWP::UserAgent->new;
+      $ua->timeout($timeout);
       $ua->proxy('ftp', $proxy ? $proxy : $ENV{ftp_proxy});
     }
     else {
-- 
1.7.9.1

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: debmirror
Source-Version: 1:2.11

We believe that the bug you reported is fixed in the latest version of
debmirror, which is due to be installed in the Debian FTP archive:

debmirror_2.11.dsc
  to main/d/debmirror/debmirror_2.11.dsc
debmirror_2.11.tar.gz
  to main/d/debmirror/debmirror_2.11.tar.gz
debmirror_2.11_all.deb
  to main/d/debmirror/debmirror_2.11_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <[email protected]> (supplier of updated debmirror package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 05 Mar 2012 17:05:29 -0400
Source: debmirror
Binary: debmirror
Architecture: source all
Version: 1:2.11
Distribution: unstable
Urgency: low
Maintainer: Joey Hess <[email protected]>
Changed-By: Joey Hess <[email protected]>
Description: 
 debmirror  - Debian partial mirror script, with ftp and package pool support
Closes: 647562 650743 662694
Changes: 
 debmirror (1:2.11) unstable; urgency=low
 .
   * Two fixes to output. Closes: #647562 Thanks, Karl Goetz
   * Support HTTP authentication by setting --user and --password.
     Closes: #650743 Thanks, Eshat Cakar
   * --timeout now also affects http and ftp download.
     Closes: #662694 Thanks, Christoph Goehre
   * Remove libcompress-zlib-perl from Depends, this is now provided by perl.
Checksums-Sha1: 
 d166f7adb2cc617a689060fbd7d2a52237d7d726 1495 debmirror_2.11.dsc
 b40dbfe422a8eb0585e768b81fdc3f9fc07d1050 48737 debmirror_2.11.tar.gz
 dd98ccfd4189c2f7f8b57ecc68d25109ce467235 51384 debmirror_2.11_all.deb
Checksums-Sha256: 
 ec932e4c52e9b50f42187d5b0d5d0d17188f8ffc10195acce12531dfe6d4a335 1495 
debmirror_2.11.dsc
 62f73c67cd819f73bebc557ce4b4d3f66a910ec9108e5ffea136a1537e470ddf 48737 
debmirror_2.11.tar.gz
 4243dbef4c10c4e9839497868f2e41dcf29262974d6881404b9c705a103c3504 51384 
debmirror_2.11_all.deb
Files: 
 145f3495ba529ca7bee33176cd7ee874 1495 net extra debmirror_2.11.dsc
 a6b1f6175bec4a3b3145c9dd11b83f73 48737 net extra debmirror_2.11.tar.gz
 59d216eb08782faad5426cf9008e8a4d 51384 net extra debmirror_2.11_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIVAwUBT1Ur78kQ2SIlEuPHAQjNJA//XcFbumlxL8shvSqyz73OgzDqnPzmCF/U
A4/8XDacIerou4guLkSK+iPxqF+RKYA92m35ubSDz0NCP10EkwLksXoCKU5sqcMU
jsDoDw0pYEEsqXJ936YaRx20o8wMp55TLcyU929lgZyXZo8akVa3/vDqaTTaBl8H
K4eEUaj27/5aHBSwL22SX7v5TwQc6dNelbASHwxQLEnSHgTzjAGj/okmZ0cY1FIC
GcTNx3M1sGAb0l1h5FqbSP0qrH793e8O1MLdlXaZ/OuHYCb+3YC0aIT9nlDnskcG
OUb6sEDEZtUYigRfQC8Uia0VEe45CHJn0OTWoxGt46ZltsDk12mpd9aTeyfGgJVz
0dj9tsqszFVHuXpfSGnFm48QXbE+90HsIQa6KFoMrEpnrj1+yj6iP5HwgZNsFCMk
tVBeF56brSo/J61TcKtj/tfyXunPDiWLsnHKnPdCrXG6N6D9+fHdxWrvec/P434Q
ruZGhTCSFI4mjOFplHgujh/VSdzR2BNDcur7mSf05BGy87Cgwbj0VayZGYYufIiw
854cGuNCgKVUxyR40hwYuwbDga5IOz6q28vweJIuxqdTyTMXiENFRd7x20ghFOiw
EbMPZyXxjeTCWXy3zo7WJXWdUdrN57AV2v8pF1NzSVrSMqsIaQJ87qFO3Y9drPSc
jVH6KZL2e+Y=
=M3CJ
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to