molnarg / node-http2

An HTTP/2 client and server implementation for node.js
MIT License
1.79k stars 185 forks source link

Error handling in endpoint when making an https request #215

Open smartprix opened 8 years ago

smartprix commented 8 years ago

Right now, if an error occurs in the endpoint, it is not being handled and as a result the whole process crashes.

https://github.com/molnarg/node-http2/blob/master/lib/http.js#L998

Adding an endpoint.on('error') handler should fix that.