File tree 2 files changed +5
-5
lines changed
src/main/java/com/rabbitmq/client/impl/nio
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public class NioHelper {
25
25
static int read (ReadableByteChannel channel , ByteBuffer buffer ) throws IOException {
26
26
int read = channel .read (buffer );
27
27
if (read < 0 ) {
28
- throw new IOException ("Channel has reached EOF" );
28
+ throw new IOException ("I/O thread: reached EOF" );
29
29
}
30
30
return read ;
31
31
}
Original file line number Diff line number Diff line change 28
28
public class NioParams {
29
29
30
30
/** size of the byte buffer used for inbound data */
31
- private int readByteBufferSize = 8192 ;
31
+ private int readByteBufferSize = 32768 ;
32
32
33
33
/** size of the byte buffer used for outbound data */
34
- private int writeByteBufferSize = 8192 ;
34
+ private int writeByteBufferSize = 32768 ;
35
35
36
36
/** the max number of IO threads */
37
37
private int nbIoThreads = 1 ;
@@ -70,7 +70,7 @@ public int getReadByteBufferSize() {
70
70
71
71
/**
72
72
* Sets the size in byte of the read {@link java.nio.ByteBuffer} used in the NIO loop.
73
- * Default is 8192 .
73
+ * Default is 32768 .
74
74
*
75
75
* This parameter isn't used when using SSL/TLS, where {@link java.nio.ByteBuffer}
76
76
* size is set up according to the {@link javax.net.ssl.SSLSession} packet size.
@@ -92,7 +92,7 @@ public int getWriteByteBufferSize() {
92
92
93
93
/**
94
94
* Sets the size in byte of the write {@link java.nio.ByteBuffer} used in the NIO loop.
95
- * Default is 8192 .
95
+ * Default is 32768 .
96
96
*
97
97
* This parameter isn't used when using SSL/TLS, where {@link java.nio.ByteBuffer}
98
98
* size is set up according to the {@link javax.net.ssl.SSLSession} packet size.
You can’t perform that action at this time.
0 commit comments