Skip to content

https: add missing localPort while create socket - #24554

Closed
leeight wants to merge 1 commit into
nodejs:masterfrom
leeight:fix-24543
Closed

https: add missing localPort while create socket#24554
leeight wants to merge 1 commit into
nodejs:masterfrom
leeight:fix-24543

Conversation

@leeight

@leeightleeight commented Nov 21, 2018

Copy link
Copy Markdown
Contributor

In _tls_wrap.js while calling socket.connect the localPort was
missing, restore it.

Fix: #24543

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the tls Issues and PRs related to the tls subsystem. label Nov 21, 2018
@leeight

Copy link
Copy Markdown
ContributorAuthor

Travis CI failed due to github api rate limit.

+PR_COMMITS='{
"message": "API rate limit exceeded for 35.188.73.34. (But here'\''s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
"documentation_url": "https://developer.github.com/v3/#rate-limiting"
}'
++node -p 'JSON.parse(process.argv[1])[0].url' '{
"message": "API rate limit exceeded for 35.188.73.34. (But here'\''s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
"documentation_url": "https://developer.github.com/v3/#rate-limiting"
}'

Comment threadtest/parallel/test-https-connect-localport.js Outdated
Comment threadtest/parallel/test-https-connect-localport.js Outdated
@leeight
leeightforce-pushed the fix-24543 branch 3 times, most recently from 13d69be to 9725da0CompareNovember 22, 2018 05:31
@mscdex

Copy link
Copy Markdown
Contributor

@leeight

Copy link
Copy Markdown
ContributorAuthor

node-test-commit-plinux failed due to an jenkins exception

10:50:13 FATAL: command execution failed
10:50:13 java.nio.channels.ClosedChannelException
10:50:13 at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:209)
10:50:13 at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222)
10:50:13 at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832)
10:50:13 at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
10:50:13 at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181)
10:50:13 at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283)
10:50:13 at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processWrite(SSLEngineFilterLayer.java:503)
10:50:13 at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processQueuedWrites(SSLEngineFilterLayer.java:248)
10:50:13 at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200)
10:50:13 at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doCloseSend(SSLEngineFilterLayer.java:213)
10:50:13 at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800)
10:50:13 at org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173)
10:50:13 at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:314)

In `_tls_wrap.js` while calling `socket.connect` the `localPort` was
missing, restore it.
Fix: nodejs#24543
@leeight

Copy link
Copy Markdown
ContributorAuthor

@mscdex@lpinca

@Trott

Trott commented Dec 1, 2018

Copy link
Copy Markdown
Member

@Trott

Copy link
Copy Markdown
Member

Hmmm...this stalled somehow.

CI: https://ci.nodejs.org/job/node-test-pull-request/20940/

/ping @nodejs/http for reviews

const https = require('https');
const assert = require('assert');

{

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: I think there is no reason to use this block.

@Trott

Copy link
Copy Markdown
Member

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 21, 2019
@Trott

Copy link
Copy Markdown
Member

Resume Build CI again: https://ci.nodejs.org/job/node-test-pull-request/20946/

macOS is acting up. 😞

@lpincalpinca added the https Issues or PRs related to the https subsystem. label Mar 1, 2019
@lpinca

Copy link
Copy Markdown
Member

@BridgeAR

BridgeAR commented Mar 4, 2019

Copy link
Copy Markdown
Member

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 5, 2019
In `_tls_wrap.js` while calling `socket.connect` the `localPort` was
missing, restore it.
PR-URL: nodejs#24554Fixes: nodejs#24543
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR

Copy link
Copy Markdown
Member

Landed in c8e0c09 🎉

@BridgeARBridgeAR closed this Mar 5, 2019
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 12, 2019
In `_tls_wrap.js` while calling `socket.connect` the `localPort` was
missing, restore it.
PR-URL: nodejs#24554Fixes: nodejs#24543
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
BethGriggs pushed a commit that referenced this pull request Apr 16, 2019
In `_tls_wrap.js` while calling `socket.connect` the `localPort` was
missing, restore it.
PR-URL: #24554Fixes: #24543
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BethGriggsBethGriggs mentioned this pull request May 1, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.httpsIssues or PRs related to the https subsystem.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

createConnection option not work for https module

7 participants

@leeight@mscdex@Trott@lpinca@BridgeAR@jasnell@nodejs-github-bot