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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to