Package: dput
Version: 0.9.2.28
Severity: minor

--- Please enter the report below this line. ---
When uploading packages through authenticated HTTP/PUT dput pauses for
~15 seconds between files. I have set up an example server that allows
uploads so you can try to reproduce it. Sample ~/.dput.cf section:

[test-dput]
fqdn = bender.workaround.org:64738/upload
method = http
allow_unsigned_uploads = 0
run_dinstall = 0
progress_indicator = 2
login = [EMAIL PROTECTED]
incoming = .

You can upload packages with any password - it's not checked. The
uploaded package files will be deleted immediately.

On the server I can see delays between certain files. See my logs:

21:04:17,897 DEBUG  Auth-Header: None
21:04:17,897 DEBUG  ABORT 401 !
21:04:17,917 DEBUG  Auth-Header: Basic ZW1haWxAY2hyaXN0b3BoLWhhYXMuZGU6YXNkZg==
21:04:17,919 INFO   File 'cream_0.39-1.dsc' received
21:04:17,945 DEBUG  Auth-Header: None
21:04:17,946 DEBUG  ABORT 401 !
[delay...]
21:04:33,351 DEBUG  Auth-Header: Basic ZW1haWxAY2hyaXN0b3BoLWhhYXMuZGU6YXNkZg==
21:04:33,423 INFO   File 'cream_0.39.orig.tar.gz' received
21:04:33,434 DEBUG  Auth-Header: None
21:04:33,434 DEBUG  ABORT 401 !
[no delay...]
21:04:33,456 DEBUG  Auth-Header: Basic ZW1haWxAY2hyaXN0b3BoLWhhYXMuZGU6YXNkZg==
21:04:33,459 INFO   File 'cream_0.39-1.diff.gz' received
21:04:33,489 DEBUG  Auth-Header: None
21:04:33,489 DEBUG  ABORT 401 !
[delay...]
21:04:48,255 DEBUG  Auth-Header: Basic ZW1haWxAY2hyaXN0b3BoLWhhYXMuZGU6YXNkZg==
21:04:48,327 INFO   File 'cream_0.39-1_all.deb' received
21:04:48,333 DEBUG  Auth-Header: None
21:04:48,333 DEBUG  ABORT 401 !
21:04:48,371 DEBUG  Auth-Header: Basic ZW1haWxAY2hyaXN0b3BoLWhhYXMuZGU6YXNkZg==
21:04:48,373 INFO   File 'cream_0.39-1_i386.changes' received

The files cream_0.39.orig.tar.gz and cream_0.39-1.diff.gz are uploaded
without any delay in between. In other cases the server does not see any
communication for ~15 seconds.

This problem does not occur without authentication.

It appears that dput always tries to upload a file without sending the
credentials in the HTTP "Authorization" request header even though the
user has entered the password already. dput bumps into the 401
(unauthorized) error time and again for every file and tries again with
the credentials. Perhaps this bug will fade away if the "Authorization"
header is sent automatically if the password is known already. Seems
like dput doesn't cope well with 401 responses and times out somewhere
in the depths of the urllib2. :)

Thanks for taking a look.

 Christoph

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.22

Debian Release: lenny/sid
  900 unstable        ftp.de.debian.org 

--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
python         (>= 2.3) | 2.4.4-6
gnupg                   | 1.4.6-2




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to