Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The close event from the request object is not guaranteed to fire on the same order across major versions of Node.js, the more accurate way to look if the connection was closed is to listen to the event on the socket. Fixes tests on v16. Ref: nodejs/node#38924
- Loading branch information