INT-1367 Increase Pipe Size to 2048, Larger than a Normal MTU; avoids Blocking NIO Reader Thread in Many Cases

This commit is contained in:
Gary Russell
2010-08-23 19:15:26 +00:00
parent 1d5ccb7a0e
commit 51f485847b

View File

@@ -75,7 +75,7 @@ public class TcpNioConnection extends AbstractTcpConnection {
public TcpNioConnection(SocketChannel socketChannel, boolean server) throws Exception {
super(server);
this.socketChannel = socketChannel;
this.pipedInputStream = new PipedInputStream();
this.pipedInputStream = new PipedInputStream(2048);
this.pipedOutputStream = new PipedOutputStream(this.pipedInputStream);
this.channelOutputStream = new ChannelOutputStream();
getConnectionId();