node.js - nodejs pcap tcp segment -


my node.js program use capture packet specific port , analyse data binary stream.

normally range of packet length should 100 - 300 sometime reason destination server got hang , didn't send data program. , later on when back, sent bulk of binary data. separate many tcp stream packets picture in link. picture show packets detail

i capture packets , open wireshark. realise packets doesn't came psh flag in tcp layer except last one. , incorrect sequence, program can't work expectation (it crash).

can tell me how handle situation ? need consider psh flag , reassembly packets before process logic node.js program.

reference: https://github.com/mranney/node_pcap


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -