Just leaving a note here regarding the current implementation of req.isDisconnected
It seems there’s some odd behaviour with req.on(‘close’), sometimes HTTP requests get aborted for no meaningful reason, but this doesn’t happen with the deprecated req.on(‘abort’)