Flush output stream and disable TCP Nagle algorithm
On cgminer 3.x using some USB ASIC devices there are issues with
cgminer disconnecting during a read_line call. The read_line in
cgminer times out while waiting for a complete line of data from
the stratum server. Flushing the output and disabling the Nagle
algorithm fixes the issue.
Merge pull request #2 from doublec/flush

Flush output stream and disable TCP Nagle algorithm