Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jetty client timeout when called within (same) ScheduledExecutorService

Hi,

On Fri, Jan 24, 2020 at 3:02 PM Gregor Jarisch <gregor@xxxxxxxxxxx> wrote:
>
> 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.

Are you configuring the scheduler with just 1 thread?

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


Back to the top