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 > > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"
