These are chat archives for rust-lang/rust

5th
Oct 2018
Paul Reesman
@reesmanp
Oct 05 2018 14:56

I am messing around with TcpStream and I can write to it multiple times but the response to the client never gets sent until the stream closes...

stream.write("Test");
stream.flush();
thread::sleep(1000);
stream.write("More tests");
stream.flush();

The entire response doesn't send until the stream goes out of scope... even with set_nodelay(). Is this expected?