You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/10/22 14:03:51 UTC
svn commit: r1709999 -
/tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java
Author: markt
Date: Thu Oct 22 12:03:51 2015
New Revision: 1709999
URL: http://svn.apache.org/viewvc?rev=1709999&view=rev
Log:
Align error handling for being unable to send the preface with the other error handling in this method.
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=1709999&r1=1709998&r2=1709999&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Http2UpgradeHandler.java Thu Oct 22 12:03:51 2015
@@ -217,7 +217,7 @@ public class Http2UpgradeHandler extends
socketWrapper.write(true, settings, 0, settings.length);
socketWrapper.flush(true);
} catch (IOException ioe) {
- throw new IllegalStateException(sm.getString("upgradeHandler.sendPrefaceFail"), ioe);
+ throw new ProtocolException(sm.getString("upgradeHandler.sendPrefaceFail"), ioe);
}
// Make sure the client has sent a valid connection preface before we
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org