Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

280
Views
When does XHR `ontimeout` is possibly called when `timeout` is 0?

Is there is any conditions that could lead to ontimeout triggered when timeout is set to 0?

var xhr = new XMLHttpRequest();
xhr.open('POST', '/something', true);

xhr.timeout = 0; // No timeout

xhr.ontimeout = function (e) {
    // Any circumstances to get here?
};

xhr.send(...);

Some sort of slow connection? Or very long internal browser connect/read timeout?

I found some users of the site I maintain fall into this problem and want to figure out why.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!