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