Set the TCP_NODELAY flag on and changed back to
BufferedWriter/BufferedReader. Still no luck with flushing the writer.