Closed magicmark closed 6 years ago
https://brightinventions.pl/blog/http-request-logging-in-node/#when-the-request-is-finished
Not all the responses actually finish - when the request is aborted by the client or internal unhandled error is thrown, ServerResponse emits close and error events accordingly, instead, and we should also subscribe on them.
https://brightinventions.pl/blog/http-request-logging-in-node/#when-the-request-is-finished