stuck on why I'm getting garbage after 2 msgs

could it be wireshark is not just writing the bytes it received?
or could there be a bug somewhere in my reading code?