forwardemail / forwardemail/superagent

connect timeout setting

Open
#1,590 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

when I request a non-existent ip address,it will throw connect xxx timeout. so I want to set connect timeout
I find we can use { response: xxx, deadline: xxx }, but it will not work well for the connect xxx timeout.
eg. { response: 1000, deadline: 60000 }
`app.get('/httpgetok', function (req, res, next) {
setTimeout(() => {
res.send('ok');
}, 30000)
});`
will throw timeout 1000 error,but I just want to use response 1000 to set connect timeout. not response timeout

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.