lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Why closesocket block ?


From: Kieran Mansley
Subject: Re: [lwip-users] Why closesocket block ?
Date: Mon, 29 Nov 2010 12:03:10 +0000

On Mon, 2010-11-29 at 19:44 +0800, runjin wrote:
> 
> 
> When I call closesocket to close the socket,this function block for a
> long time,why this happen?

Note that lwIP doesn't implement SO_LINGER, so setting SO_DONTLINGER
should have no effect.  That doesn't explain why your call to close()
blocks though.  There are lots of possible reasons why it might block.
Most code paths seem to result in it returning pretty quickly.  I
suggest you trace through the code and work out what the problem in your
case is.  The socket call won't return until the the semaphore used to
notify that the operation is completed is signalled: see do_delconn().

Kieran 




reply via email to

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