[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Socket timeout bug (?).
- Date: 02 Sep 2002 19:49:24 +0400
- From: osv at javad.ru (Sergei Organov)
- Subject: Socket timeout bug (?).
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.