Author: markt Date: Fri Mar 24 23:00:58 2017 New Revision: 1788558 URL: http://svn.apache.org/viewvc?rev=1788558&view=rev Log: Close the connection when a goaway frame is received.
Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java?rev=1788558&r1=1788557&r2=1788558&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java (original) +++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Fri Mar 24 23:00:58 2017 @@ -344,7 +344,9 @@ class Http2UpgradeHandler extends Abstra break; } - result = SocketState.UPGRADED; + if (connectionState.get() != ConnectionState.CLOSED) { + result = SocketState.UPGRADED; + } break; case OPEN_WRITE: @@ -1493,6 +1495,7 @@ class Http2UpgradeHandler extends Abstra log.debug(sm.getString("upgradeHandler.goaway.debug", connectionId, Integer.toString(lastStreamId), Long.toHexString(errorCode), debugData)); } + close(); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org