On 06/06/2016 14:34, Sven Schleier wrote: > Hi Mark, > > Thanks for this hint. My Tomcat is actually reachable from external via > HTTP/2. When I try to connect via the official domain I can connect via > HTTP/2 over SSL (h2), but not locally via localhost. Tomcat is listening on > all interfaces, and HTTP connections on localhost are working, but not > HTTP/2. > > Any idea why I HTTP/2 is not available on localhost?
Sorry, none. Most of the HTTP/2 development testing was done connecting to localhost and I don't recall any issues. > There are also no logs generated when trying to connect via HTTP/2 on > localhost. That usually means something went wrong during the HTTP/2 handshake. Time to fire up tcpdump / Wireshark. Mark > > Thanks and cheers, > > Sven > > > On 3/6/16, 4:22 PM, "Mark Thomas" <ma...@apache.org> wrote: > >> On 02/06/2016 01:23, Sven Schleier wrote: >>> True, you are right. Do you have any suggestion or sample configuration >>> that should work you can share, or anyone else? >> >> https://www.youtube.com/watch?v=oCFwgMvouis >> >> You can use 8.5.x where you see 9.0.x. >> >> Setting >> org.apache.coyote.http2.level = FINE >> in logging.properties will show you what is going on. >> >> Mark >> >> >>> >>> >>> On 1/6/16, 9:13 PM, "Mark Thomas" <ma...@apache.org> wrote: >>> >>>> On 01/06/2016 14:07, Sven Schleier wrote: >>>>> Yes. That’s possible. I am just missing the “HTTP/1.1 101 Switching >>>>> Protocols” so it’s not switching to HTTP/2. >>>> >>>> You'll only get that if you try to use HTTP/2 over a non-TLS channel. >>>> >>>> When using TLS, ALPN is used to negotiate the protocol. >>>> >>>> Mark >>>> >>>> >>>>> >>>>> >>>>> On 1/6/16, 7:04 PM, "Mark Thomas" <ma...@apache.org> wrote: >>>>> >>>>>> On 01/06/2016 03:16, Sven Schleier wrote: >>>>>>> Hi mailinglist, >>>>>>> >>>>>>> I just want to play around with the new HTTP/2 implementation of Tomcat >>>>>>> 8.5.2 Beta. The tomcat instance is up and running and the h2 support is >>>>>>> activated, according to the log during startup: >>>>>>> >>>>>>> 01-Jun-2016 01:57:52.544 INFO [main] >>>>>>> org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol >>>>>>> The ["https-openssl-apr-8443"] connector has been configured to support >>>>>>> negotiation to [h2] via ALPN >>>>>>> >>>>>>> >>>>>>> But when I try to connect via nghttp (command line client for HTTP/2), >>>>>>> it tells me that h2 is not available. >>>>>>> >>>>>>> ➜ apache-tomcat-8.5.2 nghttp -v https://127.0.0.1:8443 >>>>>>> <https://127.0.0.1:8443/> >>>>>> >>>>>> Can you connect via https + HTTP/1.1 >>>>>> >>>>>> 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 >>>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> 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 >>> >> >> >> --------------------------------------------------------------------- >> 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org