Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty http2 client idle_timeout when trying to get the session after connected to HTTP2 server

Hi Simone,

If I use eclipse to run the similar code in my PC locally, and the server is same, the request can be sent to the server side. However, if I put this code to the integrated projects and deployed it using a WAR file, and when it tries to send the same request to the same server, it will fail, and it seems that the ALPN part is not executed, so timeout after Cache client session. 

I attached the client side debug logs. 
My jetty client runs a server in a private network, and can't access public network. If you need I test it, I will try to another way to test it.

Best Regards,
William 

-----Original Message-----
From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Simone Bordet
Sent: 2017年9月28日 16:36
To: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Subject: Re: [jetty-users] Jetty http2 client idle_timeout when trying to get the session after connected to HTTP2 server

Hi,

On Wed, Sep 27, 2017 at 9:26 AM, Cao, William (NSB - CN/Qingdao) <william.cao@xxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I am trying to use Jetty 9.4.7 + JDK1.8.0_141 as the HTTP2 client. 
> During trying to set up the connection to the HTTP2 server, it seems 
> that the handshake process is successful, however, the HTTP2 client 
> session failed to be retrieved with idle_timeout. Below is the Jetty 
> log. Could you please do me a favor to have a check on the coding or settings for this try?

The code looks ok.

I suggest that you first try your code against a well known HTTP/2 server such as webtide.com, with a simple GET request.
If that works, then the problem is in your server.
If that does not work, then please post the full Jetty client DEBUG logs.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users

Attachment: jty.h2.jty947asC.0926.1
Description: jty.h2.jty947asC.0926.1


Back to the top