Hurray!
> Mark Thomas <ma...@apache.org> 於 2018年8月1日 下午4:27 寫道: > >> On 25/07/18 23:05, Aayush Dev wrote: >> With Tomcat 8.5.31, I cant enable gzip compression with HTTP2 protocol. If >> someone has successfully enabled compression on Tomcat 8.5 with HTTP2 >> protocol, please help me with correct configuration. > > Clean Tomcat 8.5.x dev build > (should work with any release from 8.5.27 onwards) > > Java 9 (just so I don't have to configure the native library) > > Configure HTTP/2 and confirm, via start-up logs it is working. > - Uncomment the NIO HTTPS connector > - Add the UpgradeProtocol (copied from the APT HTTPS connector) > ... The ["https-jsse-nio-8443"] connector has been configured to support > negotiation to [h2] via ALPN > > Request /tomcat.css (a compressible resource) > > 5581 bytes > > Uncompressed. As expected. > > Edit server.xml and add attribute compression="on" to UpgradeProtocol > (making sure it is added to the element nested in the NIO HTTPS Connector) > > Restart Tomcat > > Request /tomcat.css > > Hmm. Still not compressed... > > Double check config. Looks OK... > > Time to fire up remote debugging in the IDE. > > Find bug. Fix bug. Retest. > > 1712 bytes. That is more like it. > > The fix will be in the next release. As we are at the start of the month > I'm hoping to start the next 9.0.x and 8.5.x releases in the next few days. > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org