lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] read() returns error ECONNABORTED instead of 0 for clos


From: address@hidden
Subject: Re: [lwip-devel] read() returns error ECONNABORTED instead of 0 for closed
Date: Sun, 01 Aug 2010 20:37:53 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1

Stéphane Lesage wrote:
Is it a normal behaviour,
No
or shall lwip always return 0 when the connection is closed ?
Yes, it should always return 0. However, ECONNABORTED should only be returned after the PCBs error callback has been called... I might help if you can set a breakpoint at api_msg.c:err_tcp() and then have a look at the callstack at the time that function is called (*if* it is called).

Simon

reply via email to

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