Skip to content

doc: fixup socket.remoteAddress - #4198

Closed
baloo wants to merge 1 commit into
nodejs:masterfrom
baloo:patch-1
Closed

doc: fixup socket.remoteAddress#4198
baloo wants to merge 1 commit into
nodejs:masterfrom
baloo:patch-1

Conversation

@baloo

@baloobaloo commented Dec 8, 2015

Copy link
Copy Markdown
Contributor

remoteAddress may be undefined under certain conditions

Comment threaddoc/api/net.markdown Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parenthetical seems confusing more than clarifying. I would say either remove it, or change it to be more explicit: (for example, if the client disconnected)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: if socket is -> if the socket is

remoteAddress may be undefined under certain conditions
Signed-off-by: Arthur Gautier <baloo@gandi.net>
@baloo

baloo commented Dec 8, 2015

Copy link
Copy Markdown
ContributorAuthor

@Trott fixed thanks

@mscdexmscdex added doc Issues and PRs related to the documentations. net Issues and PRs related to the net subsystem. labels Dec 8, 2015
@evanlucas

Copy link
Copy Markdown
Contributor

LGTM

baloo pushed a commit to baloo/forwarded that referenced this pull request Dec 9, 2015
see nodejs/node#4198
test case:
``` javascript
var net = require('net');
var server = net.createServer(function(c) { //'connection' listener
c.on('end', function() {
console.log(c.remoteAddress);
server.close();
});
});
server.listen(8124, function() {
var client = net.connect({port: 8124}, function(c) {
client.end();
});
});
```
Signed-off-by: Arthur Gautier <baloo@gandi.net>
baloo pushed a commit to baloo/forwarded that referenced this pull request Dec 9, 2015
see nodejs/node#4198
test case:
``` javascript
var net = require('net');
var server = net.createServer(function(c) { //'connection' listener
c.on('end', function() {
console.log(c.remoteAddress);
server.close();
});
});
server.listen(8124, function() {
var client = net.connect({port: 8124}, function(c) {
client.end();
});
});
```
Signed-off-by: Arthur Gautier <baloo@gandi.net>
@jasnell

Copy link
Copy Markdown
Member

LGTM

rvagg pushed a commit that referenced this pull request Dec 14, 2015
remoteAddress may be undefined under certain conditions
Signed-off-by: Arthur Gautier <baloo@gandi.net>
PR-URL: #4198
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
@rvagg

Copy link
Copy Markdown
Member

LGTM, landed @ 671347c

Looks like this is your first contribution to core @baloo, thanks for the PR and welcome on board!

@rvaggrvagg closed this Dec 14, 2015
cjihrig pushed a commit that referenced this pull request Dec 15, 2015
remoteAddress may be undefined under certain conditions
Signed-off-by: Arthur Gautier <baloo@gandi.net>
PR-URL: #4198
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
@rvaggrvagg mentioned this pull request Dec 17, 2015
MylesBorins pushed a commit that referenced this pull request Dec 29, 2015
remoteAddress may be undefined under certain conditions
Signed-off-by: Arthur Gautier <baloo@gandi.net>
PR-URL: #4198
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
MylesBorins pushed a commit that referenced this pull request Jan 19, 2016
remoteAddress may be undefined under certain conditions
Signed-off-by: Arthur Gautier <baloo@gandi.net>
PR-URL: #4198
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
@MylesBorinsMylesBorins mentioned this pull request Jan 19, 2016
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
remoteAddress may be undefined under certain conditions
Signed-off-by: Arthur Gautier <baloo@gandi.net>
PR-URL: nodejs#4198
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.netIssues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@baloo@evanlucas@jasnell@rvagg@Trott@mscdex@MylesBorins