Comment 2 for bug 12695

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 09 Feb 2005 14:14:12 +0100
From: Aurelien Jarno <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: libusb: Timeouts with usb_bulk_write() and usb_bulk_read()

Package: libusb
Severity: grave
Tags: sid
Justification: renders package unusable

Version 0.1.9 of libusb seems to have timeout problems on big
usb_bulk_write or usb_bulk_read transger. The problem has been seen at
least with a scanner and libsane.

The way usb_bulk_write() and usb_bulk_read() are handled in libusb has
changed between version 0.1.8 and 0.1.9. Version 0.1.8 was using an
ioctl in a synchronous way, whereas version 0.1.9 is using the new URB
kernel interface which accepts asynchronous requests (using multiple
ioctl).

If the problem is not solved soon, I'll upload a version of libusb
0.1.9, with the usb_bulk_write() and usb_bulk_read() functions of
version 0.1.8. The changes are not big as these two functions are only
20 lines long each. This solution has the advantage to let the new
functions of libusb available.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)