-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix net-server-max-connections-close-makes-more-available #1881
Conversation
santigimeno
commented
Jun 3, 2015
- Handle connection 'error' event so the test ends.
Before this change I was getting this error:
Not sure if this change is correct though, as I'm not familiar with Promises |
I am not getting this error :
Is this |
I'm getting this error consistently in a FreeBSD 10.1 box |
Refs #1855 and /cc @brendanashworth @Trott |
- Handle connection 'error' event so the test ends.
failed.push(index); | ||
resolve(); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a check to make sure the err.code
is ECONNRESET just to make sure some other problem doesn't mask an issue here?
This isn't happening for me (just built from master on OS X). If some setups send |
This test failed on a bunch of platforms before: https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/758/ |
I should have run the test on the CI, sorry for that. But there does seem to be an issue if an |
This version in this pull request is failing for me on OS X:
This would seem to suggest that whether or not an error event is triggered when a connection is rejected may be platform-dependent. |
CI with this PR: https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/759/ |
@Trott I have applied your suggestions |
CI is happy, I'm happy. |
I created an issue for the not-triggering-ECONNRESET thing. |
We should get this in. LGTM. |
LGTM (Not sure if my LGTM counts for anything, but if it doesn't count for nothing, then there it is.) |
Fixes net-server-max-connections-close-makes-more-available Handles connection 'error' event so the test ends. PR-URL: #1881 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Thanks everyone, landed in a804026. (I had to fix the commit log a little bit) |