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

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to