You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by jo...@apache.org on 2020/09/01 18:31:26 UTC

[mina] branch 2.1.X updated: Fix DIRMINA-1129

This is an automated email from the ASF dual-hosted git repository.

johnnyv pushed a commit to branch 2.1.X
in repository https://gitbox.apache.org/repos/asf/mina.git


The following commit(s) were added to refs/heads/2.1.X by this push:
     new 7e3c75b  Fix DIRMINA-1129
7e3c75b is described below

commit 7e3c75b6fe9effbf96c69e0dc5c71fad78356f87
Author: Jonathan Valliere <jo...@apache.org>
AuthorDate: Tue Sep 1 11:31:14 2020 -0700

    Fix 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);
         }