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

http: timed out request is not aborted #478

Open
legendecas opened this issue Jan 7, 2019 · 0 comments
Open

http: timed out request is not aborted #478

legendecas opened this issue Jan 7, 2019 · 0 comments

Comments

@legendecas
Copy link
Contributor

  • Version: v0.11.0
  • Platform: all
  • Subsystem: http/https
var http = require('http')

var req = http.request({ host: 'example.com' }, res => {
  res.on('end', () => console.log('response ended'))
})
req.setTimeout(10, () => {
  console.log('timed out')
})
req.on('error', err => {
  console.error(err)
})
req.end()

prints:

timed out
response ended
@legendecas legendecas changed the title http: timed out request is not abort nor errored http: timed out request is not aborted Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant