Proper check for full packet.

Seems like Boost in debug builds asserts otherwise.