I am trying to use use the tcp assembly package to start reassembling TCP 
streams. I have looked at two examples


https://github.com/google/gopacket/tree/master/examples/httpassembly and 

https://github.com/google/gopacket/tree/master/examples/statsassembly


These example work fine if I am sending small data chunks. If I send bigger 
data, for example 5MB file from source to destination, the golang TCP 
assembly seems to lose data.


When I use tcpdump with tcpflow I can reconstruct the data I sent but the 
golang examples miss big chunks of data during reassembly and I cannot 
reproduce the data that I sent.


When I use tc command to slow down traffic, then the application works just 
fine. That's strange. Is there a limit to the speed at which go library can 
capture packets? Tcpdump seems to capture all the traffic just fine.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to