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

remm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/master by this push:
     new bd2ed0f  Keep the try catch just in case
bd2ed0f is described below

commit bd2ed0f7e83ff2a856ee51dd94ae6f756f40aefc
Author: remm <r...@apache.org>
AuthorDate: Wed May 15 14:18:45 2019 +0200

    Keep the try catch just in case
---
 java/org/apache/coyote/http2/Http2UpgradeHandler.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java 
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 585a0e5..880d365 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -1066,7 +1066,11 @@ class Http2UpgradeHandler extends AbstractStream 
implements InternalHttpUpgradeH
             // longer required (also notifies any threads waiting for 
allocations).
             stream.receiveReset(Http2Error.CANCEL.getCode());
         }
-        socketWrapper.close();
+        try {
+            socketWrapper.close();
+        } catch (Exception e) {
+            log.debug(sm.getString("upgradeHandler.socketCloseFailed"), e);
+        }
     }
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to