Socket timeout bug (?).

Sergei Organov osv at javad.ru
Mon Sep 2 15:49:24 UTC 2002


If I attempt to setup socket timeout using the call:

setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, len);

using timeout shorter than RTEMS tick, the resulting observed behavior of
subsequent read(s,...) call(s) is "wait forever". I think that "wait
forever" should be used if and only if the timeout passed to the setsockopt()
is exactly zero.

I also suspect that SO_SNDTIMEO has the same problem (not tested).

BR,
Sergei.




More information about the users mailing list