Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set the timeout of each request? #596

Closed
withinoneyear opened this issue Jan 9, 2018 · 2 comments
Closed

how to set the timeout of each request? #596

withinoneyear opened this issue Jan 9, 2018 · 2 comments

Comments

@withinoneyear
Copy link

since xhr is not exposed

@dgraham
Copy link
Contributor

dgraham commented Jan 9, 2018

@dgraham dgraham closed this as completed Jan 9, 2018
@ianstormtaylor
Copy link

FWIW, I've opened an issue whatwg/fetch#951 with a proposal for a timeout option that solves 90% of use cases, in case anyone's interested. I think it's super important to add to make sure calls to fetch (or res.json()) don't hang indefinitely.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants