lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip_accept() blocks for non-blocking sockets ?


From: Kieran Mansley
Subject: Re: [lwip-users] lwip_accept() blocks for non-blocking sockets ?
Date: Thu, 02 Oct 2008 08:51:08 +0100

On Wed, 2008-10-01 at 21:56 +0100, Jonathan Larmour wrote:
> address@hidden wrote:
> > I've noticed this too. It's a relatively easy fix. In api/sockets.c in
> > lwip_accept, put this:
> >   if (sock->flags & O_NONBLOCK)
> >   {
> >     if (!(sock->lastdata || sock->rcvevent))
> 
> I'm not sure I understand why sock->lastdata is relevant?

It shouldn't be for accept.  It's relevant for lwip_recvfrom() of
course, where the code came from.

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]