-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
response's close event not being triggered #8613
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
3 tasks
Am I understanding you correctly that the |
@addaleax nop, the |
Yeah, I can confirm that. /cc @nodejs/http |
@nodejs/http Confirmed bug? Not a bug? Something else? |
3 tasks
Fix to the test in #20006 |
jasnell
pushed a commit
that referenced
this issue
Apr 17, 2018
A whole part of the test-http-agent-destroyed-socket test was not running as the semantics of http events changed slightly and were no longer triggering the expected event. Instead listen to the same event on the socket to verify that the code being tested is still working as expected. PR-URL: #20006 Fixes: #8613 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
While attending the code and learn in the Node Interactive at Amesterdam we we’re giving the task of cleaning up some of the unit tests to follow the latest guidelines.
In the file
test/parallel/test-http-agent-destroyed-socket.js
once I replaced:for
The unit tests started to fail with the following error message:
In order to simulate the issue I created the following gist:
https://gist.github.com/canastro/36ed5066d2516c425498884123cb0824
If you run this, you'll see that
'response:: close'
never gets printed.The text was updated successfully, but these errors were encountered: