You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
error-case.js = script that results in the error for me after 240 requests success-case.js = different approach to the same functionality but this does not result in the error fixed-error-case.js = basically the same script as error-case.js but has the req.socket.close call (in line 12) as suggested by @brianseeders in Issue #5488.
This is the same issue as Issue #5488 but has a code example to reproduce.
On node v0.10.7 (on OS X 10.8.3) the error occurs for me after 240 request (on node v0.8 after 244 requests).
If
http.requestis used instead ofhttp.getthe error does not occur. Browsing through the source of nodejs I cannot find an obvious reason why.There is some more code examples in a gist I created:
https://gist.github.com/eelcocramer/5626801
The gist has 3 files:
error-case.js = script that results in the error for me after 240 requests
success-case.js = different approach to the same functionality but this does not result in the error
fixed-error-case.js = basically the same script as error-case.js but has the req.socket.close call (in line 12) as suggested by @brianseeders in Issue #5488.