[sane-devel] simple-scan & SANE_STATUS_DEVICE_BUSY

Alexander Pevzner pzz at apevzner.com
Wed Aug 5 09:51:13 BST 2020

Hi everybody,

it can be interesting for many backend developers.

When simple-scan receives SANE_STATUS_DEVICE_BUSY from sane_start(), it 
simply retries in a loop. Without any limit, without any delay, simply 
spins in retry loop as fast, as backend allows.

This is, in theory, very convenient for users, because as soon as device 
becomes ready, scanning resumes automatically.

But it puts device (and backend) under the stress test. And I believe, 
not all devices (and not all backends) will survive.


	Wishes, Alexander Pevzner (pzz at apevzner.com)

More information about the sane-devel mailing list