This is for broker outgoing connack and publish packets only.
Closes #1167. Thanks to Christoph Krey.