emscripten-core / emscripten-core/emscripten
Ability to differentiate between fetch error and timeout
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Right now, timed-out fetches (configured via timeoutMSecs) just run the onerror callback: https://github.com/emscripten-core/emscripten/blob/main/src/Fetch.js#L386. We'd like to be able to differentiate between failed fetches and timed-out fetches, preferably by exposing the ontimeout part of the underlying XHR.
Contributor guide
Assessment
This issue has not been assessed yet.