mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-6017 - respect ioBufferSize for nio transport
This commit is contained in:
parent
5d697cff3b
commit
6f524bfea0
|
@ -92,11 +92,11 @@ public class NIOTransport extends TcpTransport {
|
|||
|
||||
// Send the data via the channel
|
||||
// inputBuffer = ByteBuffer.allocateDirect(8*1024);
|
||||
inputBuffer = ByteBuffer.allocate(8 * 1024);
|
||||
inputBuffer = ByteBuffer.allocate(getIoBufferSize());
|
||||
currentBuffer = inputBuffer;
|
||||
nextFrameSize = -1;
|
||||
currentBuffer.limit(4);
|
||||
NIOOutputStream outPutStream = new NIOOutputStream(channel, 16 * 1024);
|
||||
NIOOutputStream outPutStream = new NIOOutputStream(channel, getIoBufferSize());
|
||||
this.dataOut = new DataOutputStream(outPutStream);
|
||||
this.buffOut = outPutStream;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue