some tuning of default buffer sizes etc.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@393024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-04-10 19:09:55 +00:00
parent 4436b7b28e
commit c852f0755b
1 changed files with 4 additions and 4 deletions

View File

@ -49,8 +49,8 @@ public class TcpTransport extends TransportThreadSupport implements Transport, S
private static final Log log = LogFactory.getLog(TcpTransport.class);
private int connectionTimeout = 30000;
private int soTimeout = 10000;
private int socketBufferSize = 64 * 1024;
private int soTimeout = 0;
private int socketBufferSize = 128 * 1024;
private Socket socket;
private DataOutputStream dataOut;
private DataInputStream dataIn;
@ -309,9 +309,9 @@ public class TcpTransport extends TransportThreadSupport implements Transport, S
}
protected void initializeStreams() throws IOException {
TcpBufferedInputStream buffIn = new TcpBufferedInputStream(socket.getInputStream(), 4096);
TcpBufferedInputStream buffIn = new TcpBufferedInputStream(socket.getInputStream(), 8*1024);
this.dataIn = new DataInputStream(buffIn);
TcpBufferedOutputStream buffOut = new TcpBufferedOutputStream(socket.getOutputStream(), 8192);
TcpBufferedOutputStream buffOut = new TcpBufferedOutputStream(socket.getOutputStream(), 16*1024);
this.dataOut = new DataOutputStream(buffOut);
}