Refactored sending of a command so that they are written to stream with one call.
On some systems this negates the Nagle alg and Delayed ack deadlock.