lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] How to handle the passive FIN when waiting


From: Kieran Mansley
Subject: Re: [lwip-users] How to handle the passive FIN when waiting
Date: Wed, 29 Apr 2009 08:52:06 +0100

On Wed, 2009-04-29 at 10:00 +0800, inner T wrote:
> Thanks for your reply
> 
> 
> I have tryed this, but if get passive close when lwip_recv() suspend
> the Client thread, it did not return zero but keep suspend at
> sys_arch_mbox_fetch(). 
> lwip_recv() can return zero only when the connection is not
> established.

That is not what is supposed to happen: if you have blocked in lwip_recv
() and the other end closes the connection lwip_recv() should return
zero immediately.

Kieran





reply via email to

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