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 2021/06/07 19:46:20 UTC

[tomcat] branch main updated: Restore a (commented out) HTTP/2 example

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

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


The following commit(s) were added to refs/heads/main by this push:
     new a155965  Restore a (commented out) HTTP/2 example
a155965 is described below

commit a1559651a12dc0d5230ba49141105e93f3258d52
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jun 7 20:45:52 2021 +0100

    Restore a (commented out) HTTP/2 example
---
 conf/server.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/conf/server.xml b/conf/server.xml
index dd4a73b..478ce6e 100644
--- a/conf/server.xml
+++ b/conf/server.xml
@@ -75,7 +75,7 @@
                connectionTimeout="20000"
                redirectPort="8443" />
     -->
-    <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443
+    <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
          This connector uses the NIO implementation. The default
          SSLImplementation will depend on the presence of the APR/native
          library and the useOpenSSL attribute of the
@@ -86,6 +86,7 @@
     <!--
     <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
                maxThreads="150" SSLEnabled="true">
+        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
         <SSLHostConfig>
             <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
                          type="RSA" />

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