You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2022/02/08 06:46:46 UTC
[mina] branch 2.0.X updated: Backporting patch for DIRMINA-1129
This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch 2.0.X
in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.0.X by this push:
new e0841bd Backporting patch for DIRMINA-1129
e0841bd is described below
commit e0841bd7416da76147c359d474fa20e4b408de65
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Tue Feb 8 07:46:23 2022 +0100
Backporting patch for DIRMINA-1129
---
.../java/org/apache/mina/transport/socket/nio/NioSocketConnector.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mina-core/src/main/java/org/apache/mina/transport/socket/nio/NioSocketConnector.java b/mina-core/src/main/java/org/apache/mina/transport/socket/nio/NioSocketConnector.java
index 63313d7..429f5ac 100644
--- a/mina-core/src/main/java/org/apache/mina/transport/socket/nio/NioSocketConnector.java
+++ b/mina-core/src/main/java/org/apache/mina/transport/socket/nio/NioSocketConnector.java
@@ -242,7 +242,7 @@ SocketConnector {
int receiveBufferSize = (getSessionConfig()).getReceiveBufferSize();
- if (receiveBufferSize > 65535) {
+ if (receiveBufferSize > 0) {
ch.socket().setReceiveBufferSize(receiveBufferSize);
}