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

elecharny 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 9274dda  Removed the buf.reset() call
9274dda is described below

commit 9274ddad3edce5b8796d98fdb0a9ccbe487a9b9e
Author: emmanuel lecharny <elecha...@apache.org>
AuthorDate: Wed May 22 10:13:57 2019 +0200

    Removed the buf.reset() call
---
 .../java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java    | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java
 
b/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java
index 1553a99..8b13e99 100644
--- 
a/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java
+++ 
b/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java
@@ -1170,7 +1170,6 @@ public abstract class AbstractPollingIoProcessor<S 
extends AbstractIoSession> im
                     // The first unwritten empty buffer must be
                     // forwarded to the filter chain.
                     if (buf.hasRemaining()) {
-                        buf.reset();
                         failedRequests.add(req);
                     } else {
                         IoFilterChain filterChain = session.getFilterChain();

Reply via email to