alext234 / rpc-sniffer

Capture and decode (Ethereum) JSON RPC traffic
MIT License
5 stars 0 forks source link

unable to decode when HTTP response spans multiple packets in live capture #1

Open alext234 opened 6 years ago

alext234 commented 6 years ago

When capturing live from an interface, when the response is longer than a packet, the program is not able to assemble them before perform JSON decoding.

To reproduce the issue:



which shows that HTTP `load` is incomplete and the remaining data is in subsequent packet(s). rpc-sniffer should assemble multiple TCP packets in this case.
alext234 commented 6 years ago

A precursor to solving this problem could be to have a project (different repo) that uses scapy to generate a pcap file that has HTTP response that spans multiple TCP packets