We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ time node 1.mjs Timeout awaiting 'lookup' for 100ms Execution done: 128ms real 0m4,115s user 0m0,301s sys 0m0,031s
After getting not existing host with got I face an unexpected delay before the script exits.
Execution finishes without delays at the script end
const start = Date.now(); import got from 'got'; const timeout = { lookup: 100, connect: 50, secureConnect: 50, socket: 100, send: 100, response: 100 }; try { await got('http://notexists-host/with_some_url', { timeout, retry: { limit: 0 } }); } catch (err) { console.log(err.message); } console.log(`Execution done: ${Date.now() - start}ms`);
The text was updated successfully, but these errors were encountered:
Can't reproduce with node 16.16.0
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Actual behavior
After getting not existing host with got I face an unexpected delay before the script exits.
Expected behavior
Execution finishes without delays at the script end
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: