Skip to content

Prefer ipv4 #29

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

Merged
merged 3 commits into from
Aug 4, 2023
Merged

Prefer ipv4 #29

merged 3 commits into from
Aug 4, 2023

Conversation

paulrutter
Copy link
Contributor

Use ipv4, since it will use v6 in node17.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Use ipv4, since it will use v6 in node17.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@paulrutter paulrutter changed the title Update cpuProfileWorker.js Prefer ipv4 Aug 3, 2023
- Format code
- Update dependencies
- Update changelog
@paulrutter paulrutter merged commit 59d7985 into master Aug 4, 2023
@paulrutter paulrutter deleted the maintenance/ipv4-prefer branch August 4, 2023 07:05
@paulrutter
Copy link
Contributor Author

This issue can arise when creating heapdumps and CPU profiles via the JS API, where localhost is resolved with IPv6 (::1) instead of 127.0.0.1, thus failing.

Error occurred while creating CPU profile Error: connect ECONNREFUSED ::1:5860
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
  errno: -4078,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '::1',
  port: 5860
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant