lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Server TCP RST prevents client code from draining the recei


From: Tim Cussins
Subject: [lwip-users] Server TCP RST prevents client code from draining the receive buffer.
Date: Wed, 18 Jan 2017 17:56:06 +0000

Hi all,

We've encountered a couple of interesting http servers in the wild that
redirect, then send a TCP RST immediately.

Some http servers do this to avoid the TIME_WAIT state. Viz:

  https://support.microsoft.com/en-gb/kb/272933

In our case, the data for the redirect appears to make it into LWIP, but
the subsequent RST causes the pcb to be discarded before we have an
opportunity to read it. See tcp_in.c:377

Linux, Windows, and FreeBSD network stacks all /appear/ to make
available to client code any data received before the server RST.

Has anyone encountered this issue before?

Any thoughts on the cleanest modification to LWIP that would allow the
receive buffer to be drained?

Thanks in advance,
Tim



reply via email to

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