Skip to content

Commit

Permalink
Explicitly flush after write in test connections
Browse files Browse the repository at this point in the history
  • Loading branch information
lutovich committed Apr 30, 2018
1 parent aa44e12 commit 2d8a5f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public TransportConnection connect( HostnamePort address ) throws IOException
public TransportConnection send( byte[] rawBytes ) throws IOException
{
out.write( rawBytes );
out.flush();
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public TransportConnection send( byte[] rawBytes ) throws IOException
// ownership
ByteBuffer wrap = ByteBuffer.wrap( Arrays.copyOf( rawBytes, rawBytes.length ) );
server.sendBytes( wrap );
server.flush();
return this;
}

Expand Down

0 comments on commit 2d8a5f3

Please sign in to comment.