node-http2 icon indicating copy to clipboard operation
node-http2 copied to clipboard

Error handling in endpoint when making an https request

Open smartprix opened this issue 8 years ago • 0 comments

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.

smartprix avatar Sep 06 '16 06:09 smartprix