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

  • Home
  • SEARCH
  • 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 6648891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:42:32+00:00 2026-05-26T00:42:32+00:00

How long can the browser wait before an error is shown before server answers

  • 0

How long can the browser wait before an error is shown before server answers for request? Can this time be unlimited?

  • 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-26T00:42:33+00:00Added an answer on May 26, 2026 at 12:42 am

    If you are using a jQuery $.ajax call you can set the timeout property to control the amount of time before a request returns with a timeout status. The timeout is set in milliseconds, so just set it to a very high value. You can also set it to 0 for “unlimited” but in my opinion you should just set a high value instead.

    Note: unlimited is actually the default but most browsers have default timeouts that will be hit.

    When an ajax call is returned due to timeout it will return with an error status of “timeout” that you can handle with a separate case if needed.

    So if you want to set a timeout of 3 seconds, and handle the timeout here is an example:

    $.ajax({
        url: "/your_ajax_method/",
        type: "GET",
        dataType: "json",
        timeout: 3000, //Set your timeout value in milliseconds or 0 for unlimited
        success: function(response) { alert(response); },
        error: function(jqXHR, textStatus, errorThrown) {
            if(textStatus==="timeout") {  
                alert("Call has timed out"); //Handle the timeout
            } else {
                alert("Another error was returned"); //Handle other error type
            }
        }
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How long can I expect a client/server TCP connection to last in the wild?
I can find lots of information on how Long Polling works (For example, this
How can I transform a time value into YYYY-MM-DD format in Java? long lastmodified
I've found some fairly long-winded ways to do this, but can't believe it's that
relatively long-time PHP user here. I could install XAMPP in my sleep at this
The number is bigger than int & long but can be accomodated in Decimal
For as long as I can remember I have avoided using switch statement fall-through.
How can I split long commands over multiple lines in a batch file?
How can I cast long to HWND (C++ visual studio 8)? Long lWindowHandler; HWND
I can create a literal long by appending an L to the value; why

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.