When sg_io_hdr.timeout is set to say 20000 ms, READ_10 and WRITE_10 commands succeed after 30 or even 40 seconds without an error. SCSI Generic HOWTO documents timeout as an actual limit to how long the command has to run.