Skip to content

win: gc/test-http-client-onerror.js failure in v6.6.0 #8667

@gdams

Description

@gdams
  • 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().port

changing hostname to this seeemed to remove the problem for me:

    var req = http.get({
      hostname: '127.0.0.1',
      pathname: '/',
      port: server.address().port

When running the test in a loop, it failed 16/1000 times but with my fix it did not fail once

Metadata

Metadata

Assignees

No one assigned

    Labels

    dnsIssues and PRs related to the dns subsystem.httpIssues or PRs related to the http subsystem.testIssues and PRs related to the tests.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions