Hi, On Fri, Feb 5, 2016 at 6:30 AM, John Jiang <[email protected]> wrote: > Hi guys, > It seems that Jetty HTTP/2 server cannot be connected via its HTTP/1 client > (org.eclipse.jetty.client.HttpClient). > The error likes: Illegal character 0x0 in state=START for buffer...
If you get this error, you are not using a HTTP/1.1 client to connect to the server, but a HTTP/2 client. > But the HTTP/1 client can access Apache HTTP/2 server. Apache HTTP/2 server ? At this point you have to explain what is your setup because it's not clear. On Sat, Feb 6, 2016 at 10:21 AM, John Jiang <[email protected]> wrote: > Hi, > > 2016-02-05 22:34 GMT+08:00 Jesse McConnell <[email protected]>: >> >> do you have the http/1 connection configured as well? it needs something >> to fall back to if http/2 isn't present > > I'm using standalone Jetty server with HTTP/2 related modules, and haven't > any special configuration for HTTP/1. > I suppose HTTP/1 is supported by default. > > When my Jetty server started, I got the below log: > 2016-02-06 17:16:13.757:INFO:oejs.ServerConnector:main: Started > ServerConnector@b3d7190{HTTP/1.1,[http/1.1, h2c, h2c-17, h2c-16, h2c-15, > h2c-14]}{0.0.0.0:9000} This configuration will be able to accept plain HTTP/1.1 requests, and HTTP/1.1 upgrade requests to HTTP/2. > Do I have to configure any more? You have to explain in more details what you're doing. You mention clients but not how they are configured, you mention Jetty, you mention Apache HTTP/2 server... Difficult to help you out without more detailed information. -- Simone Bordet ---- http://cometd.org http://webtide.com Developer advice, training, services and support from the Jetty & CometD experts. _______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
