-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
add curl --max-time #771
add curl --max-time #771
Conversation
Related: #544 |
There have not been many issues opened about timeouts. I am reluctant to set a custom default when might cause timeouts that given a bit longer might have worked. To some extent we would be picking a value that works for one person. Would the 5s in the PR be a suitable default for all your curl calls? In which case it could go in default curl config file: https://everything.curl.dev/cmdline/configfile |
In china , nodejs.org is often inaccessible, which causes us to waste a lot of time trying to troubleshoot the real reason. Setting up curlrc assumes that the issue is with the network, but it does not necessarily reduce the time spent troubleshooting the problem. |
Ah right, problem is the node mirror not all use of Another relevant setting which might improve behaviour is using a custom mirror. I haven't heard about how well it is working recently, but it is the example in the README: https://github.com/tj/n#custom-source
|
Let us know how the mirror site works. |
Does using |
Yes, it is |
Thanks for confirming @wangduanduan I think using the country local mirror is a better high-level answer than changing the timeout in this case. |
Pull Request
Problem
n seems to be stuck after wait a very long time, finally i found out that curl timeout, i think it will be nice to set a short default timeout for curl
Solution
ChangeLog