On Thu, 2009-03-05 at 16:04 -0500, Chen wrote: > OK, I track deeper in the source > > The reason lwip_recv still blocks even the flag says NOWAIT is because > thatsock->rcveventis Non-zero. Yet, at this point, all incoming TCP > packets have been received, the only extra packets are those tcp > window updating packets, which should not increase the rcvevent for > TCP connection. > > Since sock->rcveventis not zero, lwip_recv calls netconn_recv to fetch > the data, yet, there is no data, so it waits there until connection is > closed or something comes in. > > I believe lwIP has a problem here
I'm not sure I understand the problem here. Are you saying that you're trying to do a non-blocking receive, but lwIP blocks in some cases, and because of this your application gets stuck? Kieran _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
