Calling the method request.getServerPort() returns 80 on http/2 upgraded requests for the https connector. I would expect that this method should return 443 in these calls. My current workarround is to disable the APR Listener as this results in correct value for the https connector. So is this a bug?
so here is my config: Tomcat: 8.5.3 OS: Win7 (64bit) tcnative: 1.2.7 Java Version: 1.8.0_92-b14 parts from my server.xml: * active APR Listener * connector: <!-- https connector on 443 --> <Connector port="443" scheme="https" secure="true" SSLEnabled="true" > <!-- upgrade if possible when APR is active--> <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig ciphers="HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA" protocols="+SSLv2Hello,+TLSv1,+TLSv1.1,+TLSv1.2"> <Certificate certificateKeystoreFile="${tomcat.ssl.keystore.file}" certificateKeystorePassword="${tomcat.ssl.keystore.pass}" certificateKeystoreType="${tomcat.ssl.keystore.type}" certificateKeyAlias="tomcat" type="RSA" /> </SSLHostConfig> </Connector> Thanks, Frank