Hi,
i am using the jetty client (9.4.26.v20200117).
I am using ScheduledThreadPoolExecutor (java11) to execute a callable
that makes a http call with the jetty client.
When I call the FutureResponseListener.get(), it hangs indefinitely.
However, when I call the very same request outside of the executor
service (directly), it works like expected.
jetty client uses the same executorservice then the executing the
callable.
Any ideas what's wrong here?
Why is it blocking?
Enough threads are available (256)
FutureResponseListener.get() is here:
https://github.com/labsai/EDDI/blob/master/httpclient-impl-jetty/src/main/java/ai/labs/httpclient/impl/HttpClientWrapper.java#L120
And at this point it hangs forever until interrupt:
https://github.com/eclipse/jetty.project/blob/jetty-10.0.x/jetty-client/src/main/java/org/eclipse/jetty/client/util/FutureResponseListener.java#L100
This is the place from which it gets executed by the executorservice:
https://github.com/labsai/EDDI/blob/master/runtime-impl/src/main/java/ai/labs/runtime/BaseRuntime.java#L99
Thanks
Gregor
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users