All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with semantics?
@ 2007-08-13 17:07 Shay Goikhman
  2007-08-14  0:38 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Shay Goikhman @ 2007-08-13 17:07 UTC (permalink / raw)
  To: netdev; +Cc: davem



Dear Linux maintainers,

 I'm doing :

      setsockopt(s,  SO_RCVTIMEO, t1 );                  // set time-out
t1 on socket while block receiving on it
      select(,,, &fd_set_including(s), .., &errs, t2);      // block till
receive or time-out  t 2 jointly on a set of sockets

Apparently, I could no find reference on the coupled behavior of the two
above statements in Linux documentation.
As I understand the blocking semantics, I would expect  that  if t1<t2 ,
select should return after t1 with the descriptor 's' in 'errs' if 's' does
not become readable in the t1 interval.

It is not so in life -- select ignores t1 altogether.

Do you have some enlightening knowledge on the matter?
Thanks,
-Shay


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-27 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-13 17:07 Problem with semantics? Shay Goikhman
2007-08-14  0:38 ` Andi Kleen
2007-08-27 15:46   ` Michael Kerrisk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.