-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.testIssues and PRs related to the tests.Issues and PRs related to the tests.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
- Version:v6.6.0
- Platform:win 2012 (x64)
- Subsystem:
I have been observing the following error when running this test script on server 2012:
not ok 3 gc/test-http-client-onerror
# D:\build\jenkins-new\v6tstwin\x64node\node\test\gc\test-http-client-onerror.js:37
# throw er;
# ˆ
#
# Error: connect ECONNREFUSED 127.0.0.1:62572
# at Object.exports._errnoException (util.js:1036:11)
# at exports._exceptionWithHostPort (util.js:1059:20)
# at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
# We should do 500 requests
# Done: 64/500
# Collected: 64/460
---
duration_ms: 2.266tres
...
I believe the problem to be with this section of code in test-http-client-onerror.js
var req = http.get({
hostname: 'localhost',
pathname: '/',
port: server.address().portchanging hostname to this seeemed to remove the problem for me:
var req = http.get({
hostname: '127.0.0.1',
pathname: '/',
port: server.address().portWhen running the test in a loop, it failed 16/1000 times but with my fix it did not fail once
Metadata
Metadata
Assignees
Labels
dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.testIssues and PRs related to the tests.Issues and PRs related to the tests.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.