Eeck.. network protocol

Brian Macy (bmacy@sunshinecomputing.com)
Fri, 5 Jun 1998 08:49:29 -0700

Is it just me or is the SANE network protocol full of race conditions on
replies? There is now way to identify a reply. It expects the bytes being
read to be associated with the last sent packet.

screwed. It is possible the remote saned will still send the bytes, even if
you call SANE_NET_CANCEL. There is no way (that I can tell) that the
communication link can recover.

Even the sends could incorrectly fail under heavy system loads, in fact I
believe the watch could cause a process deadlock. If the alarm triggers
before the actual read/write will the read timeout?

Has anyone thought about a simple frame around these things?

Brian Macy

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com