This repository has been archived by the owner. It is now read-only.

http.ClientResponse does not emit parser errors #3776

Closed
mscdex opened this Issue Jul 27, 2012 · 0 comments

Comments

Projects
None yet
2 participants

mscdex commented Jul 27, 2012

Currently, HTTP parser errors are only emitted on the socket object and are not bubbled up to the response object itself.

So, you have to know to also do:

response.connection.on('error')

and not just:

response.on('error')

ghost pushed a commit to InstantWebP2P/node-httpp that referenced this issue Dec 16, 2012

http: bubble up parser errors to ClientRequest
Make parser errors bubble up to the ClientRequest instead of the underlying
net.Socket object.

This is a back-port of commit c78678b from the master branch.

Fixes #3776.

mmalecki added a commit to mmalecki/node that referenced this issue Dec 21, 2012

http: bubble up parser errors to ClientRequest
Make parser errors bubble up to the ClientRequest instead of the underlying
net.Socket object.

This is a back-port of commit c78678b from the master branch.

Fixes #3776.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.