[sane-devel] sanei_usb_read_bulk: problem in handling of NAK

2006-05-30 Thread m. allan noah
On Fri, 26 May 2006, Wittawat Yamwong wrote: On Friday 26 May 2006 21:52, Lauri Pirttiaho wrote: [...] I would propose changing the behavior of sanei_usb_read bulk so that in the case of NAK (resource temporarily unavailable) the size is returned as 0 and the return value is set either to

[sane-devel] sanei_usb_read_bulk: problem in handling of NAK

2006-05-28 Thread m. allan noah
On Fri, 26 May 2006, Lauri Pirttiaho wrote: When using libusb method in sanei_usb the behavior of sanei_usb_read bulk seems to be that in responese to NAK (errno -ETIMEDOUT, strerror saying Resource temporarily unavailable, which means the device can not temporarily provide more data) the

[sane-devel] sanei_usb_read_bulk: problem in handling of NAK

2006-05-26 Thread Gerard Klaver
On Fri, 2006-05-26 at 22:52 +0300, Lauri Pirttiaho wrote: Hello, I have encountered a problem with bulk read that might benefit from some change in sanei_usb. This problem becomes visible in a fast machine like AMD64 and seems to have been seen in Avision backend and now in cs3200f. When

[sane-devel] sanei_usb_read_bulk: problem in handling of NAK

2006-05-26 Thread Wittawat Yamwong
On Friday 26 May 2006 21:52, Lauri Pirttiaho wrote: [...] I would propose changing the behavior of sanei_usb_read bulk so that in the case of NAK (resource temporarily unavailable) the size is returned as 0 and the return value is set either to SANE_STATUS_GOOD (read OK, just no data at this