2

When initiating a network request in the browser via fetch or xmlhttprequest, what happens if the network request takes a very long time? E.g. 20 minutes. Does the browser have a time limit after which it rejects requests? Is it possible to extend this?

I am thinking about a large file upload using a single network request to a server endpoint, but which might take a very long time over slow connections. Though I am only asking about browser behavior.

MattH
  • 121
  • 8

1 Answers1

0

Usually these values are set on the web server.

You may want to reach out to the Web Administrator and see if they can adjust the xmlhttprequest time out value.

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout

Additional Unsolicited Suggestion: For large uploads / big data, try to utilize Jumbo Frames if possible.

Technoob1984
  • 172
  • 9