Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty http2 client request hangs indefinitely

Santhosh,

sorry for the late reply.

On Mon, Aug 26, 2019 at 3:26 PM Santhosh Kumar <santhosh89j@xxxxxxxxx> wrote:
> I cannot use JMX in live production servers, so I just called httpclient.dump() while it was hanging using a local servlet call,  FYKI we instantiate a static httpclient and it will be used  to establish connection with many remote servers  in a multithreaded environment. PFA links below for client dumps
>
> https://pastebin.com/N017wph4
>
> https://pastebin.com/k21hzLwL

Good solution, just remember to protect that local Servlet (only you
should be able to call it).

What I see from the dumps are 2 things.
* the client connects to ports 8080 (typically used for clear-text
communication), while the diagram hints there is SSL offload at the
external server.
* the client has a lot of exchanges queued, and the connection pool is
empty of established connections, although 1 was attempted.

This is one client dump that seems to be manufactured as I looked at
it and thought "impossible".

This strikes to me as the client trying to connect to the external
server, but does not receive a TCP reply (or we handle it wrongly).
The client-side connect timeout should fire and fail all the
exchanges, but apparently it does not.

Can you enable DEBUG logs then send the *first* request?
There must be something really weird that happens and we don't cope
well with it.

Thanks for your patience.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top