[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #50892] lwip send HTTP/1.0 200 OK with content length
From: |
Dmitry |
Subject: |
[lwip-devel] [bug #50892] lwip send HTTP/1.0 200 OK with content length and content of file which cause FIN, ACK from browser |
Date: |
Fri, 28 Apr 2017 08:08:53 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:53.0) Gecko/20100101 Firefox/53.0 |
URL:
<http://savannah.nongnu.org/bugs/?50892>
Summary: lwip send HTTP/1.0 200 OK with content length and
content of file which cause FIN, ACK from browser
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: gdi
Submitted on: Fri 28 Apr 2017 12:08:52 PM UTC
Category: TCP
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
I'm trying to upgrade lwip 1.4.1 to 2.0.x with httpserver_raw and got strange
behavior. I can't receive full file data it cut somewhere in the muddle. I use
the same device with same web files, I just compile lwip 1.4.1 or 2.0.3b. So
1.4.1 works fine, but 2.0.3b fails.
I use FatFs on SD card to store files and set LWIP_HTTPS_DYNAMIC_FILE_READ =
1
Please see in attached files the Wireshark logs. Where are the same file
transfer, 'good*' files captured on lwip 1.4.1, 'wrong*' files from 2.0.3b.
I observed that on 2.0.3b the server sends 'HTTP/1.0 200 OK' answer and a part
of file in one TCP send and looks like this caused browser to send ACK, then
FIN, ACK. And after that browser sends RST on following file chinks while lwip
continue send file chunks. Lwip 1.4.1 doesn't send '200 ok' answer right after
GET request, but just send file chunks and send '200 OK' only after file was
send.
So can anybody help me to fox this issue?
Lwip is a 192.168.0.141 host, the 192.168.0.112 is a Linux PC station with
Firefox browser.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 28 Apr 2017 12:08:52 PM UTC Name: good-short.txt Size: 10kB By:
gdi
<http://savannah.nongnu.org/bugs/download.php?file_id=40525>
-------------------------------------------------------
Date: Fri 28 Apr 2017 12:08:52 PM UTC Name: good.txt Size: 113kB By: gdi
<http://savannah.nongnu.org/bugs/download.php?file_id=40526>
-------------------------------------------------------
Date: Fri 28 Apr 2017 12:08:52 PM UTC Name: wrong-short.txt Size: 13kB By:
gdi
<http://savannah.nongnu.org/bugs/download.php?file_id=40527>
-------------------------------------------------------
Date: Fri 28 Apr 2017 12:08:52 PM UTC Name: wrong.txt Size: 168kB By: gdi
<http://savannah.nongnu.org/bugs/download.php?file_id=40528>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50892>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #50892] lwip send HTTP/1.0 200 OK with content length and content of file which cause FIN, ACK from browser,
Dmitry <=