lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip 1.4 - no FIN sent!


From: Micael
Subject: Re: [lwip-users] lwip 1.4 - no FIN sent!
Date: Fri, 19 Aug 2011 18:06:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110624 Thunderbird/5.0

On 08/19/11 12:18, Stephane Lesage wrote:
False alert for the FIN ! The flag is set but it's not displayed in
wireshark single line because it's interpreted as an HTTP response.
m8847 you should check in the packet details.
Well, I have! It is not set for me. I'm home right now, eating pizza,
:-) but I am certain that I don't get the FIN. I'll try more tomorrow.
If LwIP sends a RST packet to close the connection, then it's because
you didn't read all the data from the browser.
(you must read all headers until the double CRLF, and not just the first
line)

This is a common behavior of TCP/IP stacks.
Look in the documentation of the function tcp_close_shutdown() in tcp.c

Thanks! Indeed I did not read the full content from the browser! For some reason this worked anyway in 1.3 (and therefore I missed out on it), but makes more trouble in 1.4.

Will test more and deeper next week, but early tests shows that your suggestion is the main issue.


 Regards,
   Micael



reply via email to

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