[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] RST sent by linux on close
From: |
Jeff Barber |
Subject: |
Re: [lwip-users] RST sent by linux on close |
Date: |
Thu, 27 May 2010 08:17:09 -0400 |
On Wed, May 26, 2010 at 2:36 PM, Kieran Mansley <address@hidden> wrote:
> On 26 May 2010, at 14:58, Jeff Barber wrote:
>
>> Not an lwip problem per se (at least I don't think so), but I'm hoping
>> some TCP expert here can suggest a reason why this is happening:
>
> The usual reason for a RST being sent in this situation is if there is still
> data queued on the socket for the client application to read. I would have
> thought the shutdown(RDWR) would have dealt with that. Just to make sure,
> you could try explicitly trying to read from the socket just before you close
> it.
Ah. Thanks for the insight. It turns out you're exactly right. I
have data on the client side that I haven't received yet at the time
of the close.
Jeff