Fixed in DEVEL branch by first adding
500 to timeout->tv_usec, then dividing it by
1000.
That should give a 1 microsecond value
as a minimum timeout for timeout = { 0, 0 };
Leon.
address@hidden
wrote on 13-06-2003 16:07:07:
> There is a bug in lwip_select(). Around line 726 I find
>
> msectimeout = ((timeout->tv_sec * 1000) + (timeout->tv_usec
/1000));
>
> Obviously lwip_select works with milisecond precision. This line is
going to
> be a problem when a user tries to call lwip_select() with a timeout
of less
> than 1 millisecond, say 100 nanoseconds. The division will be zero
which
> makes the msectimeout zero which will make select() wait forever,
which is
> not quite what the programmer intended.
>
> Florian
> Zschocke
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/lwip-users