FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

net: fix family autoselection timeout handling. by ShogunPanda · Pull Request #47860 · nodejs/node · GitHub

/ node Public

net: fix family autoselection timeout handling. - #47860

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
ShogunPanda:autoselectfamily-timeout
May 11, 2023
Merged

net: fix family autoselection timeout handling.#47860
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
ShogunPanda:autoselectfamily-timeout

Conversation

ShogunPanda commented May 4, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

This PR fixes timeout handling of the family autoselection.

@nodejs/net @nodejs/tsc To ensure better user experience, I disabled the attempt timeout when connecting to the last IP address available, otherwise each connection attempt would be bound to the same (pretty low) timeout.
Do you think this is a reasonable approach? Also, is this considered a semver-major change? I think people are affected by this so we might want to include in 20.x anyway.

Fixes #47822.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net

ShogunPanda added the request-ci Add this label to start a Jenkins CI on a PR. label May 4, 2023
nodejs-github-bot added needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem. labels May 4, 2023
ShogunPanda force-pushed the autoselectfamily-timeout branch from 28763f1 to 28d9306 Compare May 4, 2023 12:50
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 4, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

tniessen left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

As far as I can tell from https://github.com/nodejs/reliability, tests such as test-x509-escaping started being flaky with ERR_SOCKET_CONNECTION_TIMEOUT from within internalConnectMultiple in the first half of April, shortly after #46790 was merged. Is this PR a fix for those flaky tests, too?

Copy link
Copy Markdown
Contributor Author

@tniessen I haven't checked specifically, but I think so.

Co-authored-by: Tobias Nießen <tniessen@tnie.de>
ShogunPanda added the request-ci Add this label to start a Jenkins CI on a PR. label May 10, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 10, 2023

Copy link
Copy Markdown
Collaborator

mcollina left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

ShogunPanda added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels May 11, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 11, 2023
nodejs-github-bot merged commit 2d24b29 into nodejs:main May 11, 2023

Copy link
Copy Markdown
Collaborator

Landed in 2d24b29

ShogunPanda deleted the autoselectfamily-timeout branch May 11, 2023 22:47
targos pushed a commit that referenced this pull request May 12, 2023
PR-URL: #47860
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>

targos commented May 15, 2023

Copy link
Copy Markdown
Member

This seems to introduce a crash in some cases: #48000

targos commented May 15, 2023

Copy link
Copy Markdown
Member

I'll exclude this change from v20.2.0 while it's being investigated.

Copy link
Copy Markdown
Contributor Author

Thanks @targos. I'll take a look soon

Copy link
Copy Markdown
Contributor

See my update here. I think there might be additional fixes required (moving this block to here).

targos pushed a commit that referenced this pull request Jun 4, 2023
PR-URL: #47860
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
targos mentioned this pull request Jun 4, 2023
juanarbol pushed a commit to juanarbol/node that referenced this pull request Jul 17, 2023
PR-URL: nodejs#47860
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
mhdawson pushed a commit to mhdawson/io.js that referenced this pull request Jul 26, 2023
PR-URL: nodejs#47860
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
mhdawson pushed a commit to mhdawson/io.js that referenced this pull request Aug 4, 2023
PR-URL: nodejs#47860
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
ruyadorno pushed a commit that referenced this pull request Aug 14, 2023
PR-URL: #47860
Backport-PR-URL: #49016
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
ruyadorno mentioned this pull request Aug 17, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v20.0.0 ERR_SOCKET_CONNECTION_TIMEOUT when sending http request to some domains

9 participants


Back | FazBrowse Home | New Git URL