szmarczak / http-timer

🕐 Performance timings for HTTP requests
MIT License
192 stars 18 forks source link

Missing `'aborted'` listener #20

Closed ronag closed 3 years ago

ronag commented 4 years ago

The IncomingMessage response object does not emit ECONNRESET as an 'error', rather it emits an 'aborted' event. http-timer should probably listen to the 'aborted' handler and treat it as an error?

ronag commented 4 years ago

Some related reading if interested:

https://github.com/nodejs/node/issues/28172 https://github.com/nodejs/node/pull/28677

szmarczak commented 3 years ago

Fixed in 4.0.6