Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7191177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:40:21+00:00 2026-05-28T19:40:21+00:00

I have a jetty Http client configured as follows: HttpClient client = new HttpClient();

  • 0

I have a jetty Http client configured as follows:

    HttpClient client = new HttpClient();
    client.setTimeout(connectionTimeout);
    client.setIdleTimeout(readTimeout);
    client.setMaxConnectionsPerAddress(100);
    client.setThreadPool(new QueuedThreadPool(100));
    client.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
    client.setMaxRetries(retries);

and the call below always takes ~400ms which seems way to long for an async call. To clarify I am not worried about the response time of the request. Just the method call keeps my thread busy for 400ms. It seems this method is blocking somewhere but it should be async.

    client.send(httpExchange);

Am I messing up my configuration some how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:40:22+00:00Added an answer on May 28, 2026 at 7:40 pm

    I haven’t had time to test this, but I suspect your fix is

    client.setConnectBlocking(false);
    

    It would appear, that by default, an HttpClient blocks on connect – even if the connector is non-blocking for the send/receive of the request+response.

    (That assumes Jetty 7. I haven’t checked for Jetty 8)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following scenario: Server: Jetty (with configured JAAS) Client: Jersey invoked via
I want to use the jetty httpclient (in netbeans) but have the least number
I have a servlet filter which I want to map to http://127.0.0.1:8888/ in Jetty.
I have a backend server (Jetty) that processes HTTP requests and interacts with a
I have a basic Jetty server running locally. If I pull up http://localhost/servlet1 in
I have the following Maven code snippet <plugin> <!-- http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin --> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.16</version>
I have a Spring Roo project and I use mvn jetty:run to run my
I have a spring application that uses an embedded Jetty instance. Since I am
I have one web app works perfectly under linux with jetty-6.1.22. However, when I
I'm programming using GWT, which includes Jetty. I have defined my own servlet and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.