Are you using 1.3.0?
In my code it says:
/* If we don't have any current events, then suspend if we are supposed to */
  if (!nready) {
    if (timeout && timeout->tv_sec == 0 && timeout->tv_usec == 0) {
      sys_sem_signal(selectsem);
      if (readset)
        FD_ZERO(readset);
      if (writeset)
        FD_ZERO(writeset);
      if (exceptset)
        FD_ZERO(exceptset);

LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_select: no timeout, returning 0\n"));
      set_errno(0);

      return 0;
    }


On Oct 6, 2008, at 11:57 AM, Chu, Zhenwei wrote:

Hi,

It seems that lwIP_select() always block even if timeout is set to 0.

The call stack shows it stops at
sys_sem_wait(sem);  (line 316: sys.c)
sys_sem_wait_timeout();

Any suggestions?

Thanks

Zhenwei Chu


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users




_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to