Re: [lwip-users] Server TCP RST prevents client code from draining the receive buffer.

2017-01-19 Thread Tim Cussins
Hi Simon, On Thu, Jan 19, 2017, at 09:50 AM, Tim Cussins wrote: > > > Any thoughts on the cleanest modification to LWIP that would allow the > > > receive buffer to be drained? > > > > Yes: task #13922 (Remove fatal error handling) has to be done first. > > "Fatal error handling" > > currently p

Re: [lwip-users] Server TCP RST prevents client code from draining the receive buffer.

2017-01-19 Thread Tim Cussins
Hi Simon, Thanks for the quick reply! On Wed, Jan 18, 2017, at 08:36 PM, goldsi...@gmx.de wrote: > Tim Cussins wrote: > > We've encountered a couple of interesting http servers in the wild that > > redirect, then send a TCP RST immediately. > > [..] > > In our case, the data for the redirect appe

Re: [lwip-users] Server TCP RST prevents client code from draining the receive buffer.

2017-01-18 Thread goldsi...@gmx.de
Tim Cussins wrote: We've encountered a couple of interesting http servers in the wild that redirect, then send a TCP RST immediately. [..] 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 re

[lwip-users] Server TCP RST prevents client code from draining the receive buffer.

2017-01-18 Thread Tim Cussins
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