GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — net: improve error message when no address by JacksonTian · Pull Request #239 · nodejs/node

Conversation

@JacksonTian

@JacksonTian JacksonTian commented Jan 6, 2015

Copy link
Copy Markdown
Contributor

when use 'listen(80)' will get the 'listen EACCES null:80'. this fix will
make the error message better. like 'listen EACCES 0.0.0.0:80'.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@JacksonTian
net: improve error message when no address
5d7328a
when use 'listen(80)' will get the 'listen EACCES null:80'. this fix will
make the error message better. like 'listen EACCES 0.0.0.0:80'.
@JacksonTian
JacksonTian force-pushed the refine_address branch from e1a03ad to 5d7328a Compare January 12, 2015 05:33
@JacksonTian

JacksonTian commented Jan 12, 2015

Copy link
Copy Markdown
Contributor Author

ping @reviewers

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cjihrig
cjihrig reviewed Jan 12, 2015
View reviewed changes
Comment thread lib/net.js

@cjihrig cjihrig Jan 12, 2015

Copy link
Copy Markdown
Contributor

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.

Will this work on machines that only have IPv6 configured?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JacksonTian JacksonTian Jan 13, 2015

Copy link
Copy Markdown
Contributor Author

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.

@cjihrig , the listen will fallback to IPv4, when IPv6 failed.

  if (address || port || isTCP) {
    debug('bind to ' + (address || 'anycast'));
    if (!address) {
      // Try binding to ipv6 first
      err = handle.bind6('::', port);
      if (err) {
        handle.close();
        // Fallback to ipv4
        return createServerHandle('0.0.0.0', port);
      }
    } else if (addressType === 6) {
      err = handle.bind6(address, port);
    } else {
      err = handle.bind(address, port);
    }
  }

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cjihrig cjihrig Jan 19, 2015

Copy link
Copy Markdown
Contributor

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.

I didn't notice before that this is just for formatting an exception. I don't know how I feel about setting the value artificially just for that, but I'm OK with the rest of the PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vkurchatkin vkurchatkin mentioned this pull request Jan 21, 2015
net: move default address logic to _listen2 #539
Closed
@vkurchatkin

vkurchatkin commented Jan 23, 2015

Copy link
Copy Markdown
Contributor

fixed by #539

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkurchatkin vkurchatkin closed this Jan 23, 2015
@JacksonTian
JacksonTian deleted the refine_address branch December 21, 2015 06:40
@ChALkeR ChALkeR added the net Issues and PRs related to the net subsystem. label Feb 16, 2016
@snyk-bot snyk-bot mentioned this pull request Feb 12, 2022
[Snyk] Upgrade eslint-plugin-promise from 5.2.0 to 6.0.0 Iceymann18777/node#11
Open
This was referenced Dec 1, 2023
[Snyk] Fix for 1 vulnerabilities MaxMood96/node#39
Open
[Snyk] Fix for 1 vulnerabilities Mement-Mori/node#34
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

net Issues and PRs related to the net subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@JacksonTian @vkurchatkin @cjihrig @ChALkeR
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.