[sane-devel] getenv(SANE_USB_TIMEOUT)
René Rebe
rene at exactcode.de
Wed Jul 16 11:08:05 UTC 2008
Hi,
The user should not be able to mess the timeouts from the environment. The
backends should know precisely how long a response takes, especially to
return to the user if the scanner got "stuck".
If one device requires it's own timeouts then go fix the backend to set it.
m. allan noah wrote:
> there already is a mechanism for the backend to change the timeout:
> sanei_usb_set_timeout. which takes precedence, the env var or the
> backend?
>
> allan
>
> On 7/15/08, Lev A. Melnikovsky <leva at hotmail.com> wrote:
>
>> Hi there,
>>
>> I do often see timeouts with my scanner (HP ScanJet 6200C via USB) under Linux
>> 2.6.24. The problem disappears if I replace (file sanei_usb.c)
>>
>> -static int libusb_timeout = 30 * 1000; /* 30 seconds */
>>
>> with
>>
>> +static int libusb_timeout = 120 * 1000; /* 120 seconds */
>>
>> For me it seems reasonable to add an environment variable SANE_USB_TIMEOUT
>> to specify default USB timeout. Would such a patch be accepted? Other
>> recommendations?
>>
>> thanks
>> -L
>>
--
René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
http://exactcode.de | http://t2-project.org | http://rene.rebe.name
More information about the sane-devel
mailing list