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 _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
