Closed id88 closed 2 years ago
@id88 Dpkt is just handling simple packet parsing. The package does not provide support for reconstructing ‘flows’ (TCP Reassembly https://www.wireshark.org/docs/wsug_html_chunked/ChAdvReassemblySection.html). A HTTP request (and response if you tried to parse it) will only parse correctly if they fit within a single packet. Requests can often fit in a single packet but Responses almost never will.
Expected behavior - closing
dpkt.http.Response always fails when body is divided into several parts which are transported in different tcp packets.
Code
Result:
will always raise an exception because the body is divided into several parts which are transported in different tcp packets. I am not sure whether it is a bug or not, but I actually don't know how to deal with it. Thanks
screenshot
Details: