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 2015/07/28 11:45:00 UTC

[4/4] mina git commit: Patch for DIRMINA-1017

Patch for DIRMINA-1017


Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/e81c0eb0
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/e81c0eb0
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/e81c0eb0

Branch: refs/heads/2.0
Commit: e81c0eb0141559569fd054812e5d8fefcd27f271
Parents: ff174e8
Author: Emmanuel Lécharny <el...@symas.com>
Authored: Tue Jul 28 11:44:43 2015 +0200
Committer: Emmanuel Lécharny <el...@symas.com>
Committed: Tue Jul 28 11:44:43 2015 +0200

----------------------------------------------------------------------
 mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/e81c0eb0/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
----------------------------------------------------------------------
diff --git a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
index 9135717..55cd926 100644
--- a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
+++ b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslHandler.java
@@ -751,7 +751,7 @@ class SslHandler {
             if (status == SSLEngineResult.Status.BUFFER_OVERFLOW) {
                 // We have to grow the target buffer, it's too small.
                 // Then we can call the unwrap method again
-                appBuffer.capacity(appBuffer.capacity() << 1);
+                appBuffer.capacity(sslEngine.getSession().getApplicationBufferSize());
                 appBuffer.limit(appBuffer.capacity());
                 continue;
             }