Control port closes on QUIT before flushing

If a synchronous command is issued to the control port which has a long reply, and is followed immediately by a QUIT command, the connection may be closed before the first command's reply can be flushed.

""" cat <<EOF | nc localhost 9051 > consensus AUTHENTICATE GETINFO dir/status-vote/current/consensus QUIT EOF """

The above will cut off before reaching the end of the consensus document and close the connection.

[Automatically added by flyspray2trac: Operating System: All]

Trac:
Username: neoeinstein