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 604531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:02:56+00:00 2026-05-13T17:02:56+00:00

I have a jetty server which is configured to expire requests after 30 seconds,

  • 0

I have a jetty server which is configured to expire requests after 30 seconds, this is the configuration line in the xml config file:

<Set name="maxIdleTime">30000</Set>

There are two kinds of requests that are accepted by this server: requests which have to be served in real time and requests that come from batch scripts that can take their time to be answered.

One request in particular is expected to take up to some minutes.
Now I would like to allow this request to execute in full without timing out, while keeping expiration time for “normal” real time requests low, in order to avoid potential congestions.

My guess is that I would have to do something like this:

public class MyServlet extends HttpServlet {

    ...

    public void doGet(HttpServletRequest pRequest, HttpServletResponse pResponse)
        throws IOException, ServletException {

        if (pRequest is of the type allowed to be slow) {
            set max idle time for this request very high (or infinite)
        }

        server.execute(pRequest, pResponse);
    }


}

I’m using jetty 6.1.2rc4

  • 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-13T17:02:56+00:00Added an answer on May 13, 2026 at 5:02 pm

    The maxIdleTime parameter doesn’t configure the time that a request is allowed to take. The value is used to remove idle threads from the thread pool when Jetty decides to shrink the pool. See the javadoc for QueuedThreadPool#setMaxIdleTime().

    If requests are timing out, it is probably due to the socket timeout parameter on one or both sides.

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

Sidebar

Related Questions

I have a basic Jetty server running locally. If I pull up http://localhost/servlet1 in
I have 2 files: xxxxxTest.java [ refer this ] public class xxxxxTest extends TestCase
I have two web application projects which are related. One is the website itself
We have a commercial software product under development. It supports Oracle, MySQL, and SQL*Server
I got several questions regarding this issue 1) ActiveMQ after installed and started also
This error is a nightmare, I have not been able to figure out why
I am working with jetty hightide vesion 7 currently as a stand alone server.
I have followed the installation instructions as shown here to install the FedOne server,I
I have the following string from a REST JSON response: [ { uid:10512213, name:Bob
I'm trying to get a simple Lift example running and I'm having a strange

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.