https://issues.apache.org/jira/browse/AMQ-6017 - respect ioBufferSize for nio transport

This commit is contained in:
Dejan Bosanac 2015-10-22 11:41:02 +02:00
parent 5d697cff3b
commit 6f524bfea0
1 changed files with 2 additions and 2 deletions

View File

@ -92,11 +92,11 @@ public class NIOTransport extends TcpTransport {
// Send the data via the channel // Send the data via the channel
// inputBuffer = ByteBuffer.allocateDirect(8*1024); // inputBuffer = ByteBuffer.allocateDirect(8*1024);
inputBuffer = ByteBuffer.allocate(8 * 1024); inputBuffer = ByteBuffer.allocate(getIoBufferSize());
currentBuffer = inputBuffer; currentBuffer = inputBuffer;
nextFrameSize = -1; nextFrameSize = -1;
currentBuffer.limit(4); currentBuffer.limit(4);
NIOOutputStream outPutStream = new NIOOutputStream(channel, 16 * 1024); NIOOutputStream outPutStream = new NIOOutputStream(channel, getIoBufferSize());
this.dataOut = new DataOutputStream(outPutStream); this.dataOut = new DataOutputStream(outPutStream);
this.buffOut = outPutStream; this.buffOut = outPutStream;
} }