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 — Allow disabling autoSelectFamily in an Agent by hitsthings · Pull Request #4070 · nodejs/undici

Conversation

@hitsthings

@hitsthings hitsthings commented Feb 28, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Currently the options are only passed if they enable autoSelectFamily. However, if autoSelectFamily is the default, we want to be able to disable it too.

Noticed this while debugging nodejs/node#47822 (comment)

This relates to...

nodejs/node#47822 (comment)

Rationale

Currently this claims to accept a boolean but really only accepts true.

Changes

React to the autoSelectFamily option if it is passed in.

Features

Agent's can disable autoSelectFamily

Breaking Changes and Deprecations

None?

Status

  • I have read and agreed to the Developer's Certificate of Origin
  • Tested
  • Benchmarked (optional)
  • Documented
  • Review ready
  • In review
  • Merge ready

Sorry, something went wrong.

Uh oh!

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

All reactions
@hitsthings
Allow disabling autoSelectFamily in an Agent
872374a
Currently the options are only passed if they enable autoSelectFamily. However, if autoSelectFamily is the default, we want to be able to disable it too.
@hitsthings hitsthings mentioned this pull request Feb 28, 2025
v20.0.0 ERR_SOCKET_CONNECTION_TIMEOUT when sending http request to some domains nodejs/node#47822
Closed
@hitsthings
Fix the autoSelectFamily error in client too.
7a7e036
- Also add tests.
- Fix types so that partial options can be passed
  to buildConnector without violating the TypeScript.
  For example, TcpNet options require 'port' but the options
  we pass should not.
@hitsthings
hitsthings marked this pull request as ready for review February 28, 2025 03:43
hitsthings
hitsthings commented Feb 28, 2025
View reviewed changes
Comment thread types/client.d.ts
maxRedirections?: number;
/** TODO */
connect?: buildConnector.BuildOptions | buildConnector.connector;
connect?: Partial<buildConnector.BuildOptions> | buildConnector.connector;

@hitsthings hitsthings Feb 28, 2025 •
edited
Loading

Uh oh!

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

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.

new Agent({ connect: { autoSelectFamily: true } }) is not actually considered valid currently because it doesn't specify required properties of buildConnector.BuildOptions. But the rest of the options come from elsewhere (hence why connect itself is not a required property) so you don't need to specify everything.

Sorry, something went wrong.

Uh oh!

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

All reactions
metcoder95
metcoder95 approved these changes Feb 28, 2025
View reviewed changes
@hitsthings

hitsthings commented Feb 28, 2025

Copy link
Copy Markdown
Contributor Author

Let me know if I need to do something about those tests. They seem unrelated to this afaict.

All reactions

Sorry, something went wrong.

Uh oh!

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

@metcoder95
Merge branch 'main' into patch-1
185c706
mcollina
mcollina approved these changes Mar 11, 2025
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

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.

lgtm

Sorry, something went wrong.

Uh oh!

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

All reactions
@metcoder95
Merge branch 'main' into patch-1
5a6d29f
@metcoder95
metcoder95 merged commit 1e58b58 into nodejs:main Mar 12, 2025
This was referenced Mar 12, 2025
[Release] v7.4.1 #4090
Closed
[Release] v7.5.0 #4091
Merged
[Release] v6.21.2 #4092
Closed
chance-coleman pushed a commit to defenseunicorns/uds-core that referenced this pull request Mar 13, 2025
@renovate
chore(deps): update support-deps (#1354)
dd36d03
This PR contains the following updates:

| Package | Type | Update | Change | Age | Adoption | Passing |
Confidence |
|---|---|---|---|---|---|---|---|
| aws | required_provider | minor | `~> 5.90.0` -> `~> 5.91.0` |
[![age](https://developer.mend.io/api/mc/badges/age/terraform-provider/hashicorp%2faws/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/terraform-provider/hashicorp%2faws/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/terraform-provider/hashicorp%2faws/5.90.1/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/terraform-provider/hashicorp%2faws/5.90.1/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[kubernetes-fluent-client](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client)
| devDependencies | patch | [`3.4.2` ->
`3.4.5`](https://renovatebot.com/diffs/npm/kubernetes-fluent-client/3.4.2/3.4.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/kubernetes-fluent-client/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/kubernetes-fluent-client/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/kubernetes-fluent-client/3.4.2/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/kubernetes-fluent-client/3.4.2/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>defenseunicorns/kubernetes-fluent-client
(kubernetes-fluent-client)</summary>

###
[`v3.4.5`](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/releases/tag/v3.4.5)

[Compare
Source](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/compare/v3.4.4...v3.4.5)

##### Bug Fixes

- undici bump with new features
([#&#8203;586](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/586))
([38d9159](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/commit/38d9159bf34029ac4e2cff238857b4609a454281)),
closes
[nodejs/undici#4044](https://redirect.github.com/nodejs/undici/issues/4044)
[nodejs/undici#4029](https://redirect.github.com/nodejs/undici/issues/4029)
[nodejs/undici#4084](https://redirect.github.com/nodejs/undici/issues/4084)
[nodejs/undici#4027](https://redirect.github.com/nodejs/undici/issues/4027)
[nodejs/undici#4070](https://redirect.github.com/nodejs/undici/issues/4070)
[nodejs/undici#4088](https://redirect.github.com/nodejs/undici/issues/4088)
[nodejs/undici#4029](https://redirect.github.com/nodejs/undici/issues/4029)
[nodejs/undici#4084](https://redirect.github.com/nodejs/undici/issues/4084)
[nodejs/undici#4070](https://redirect.github.com/nodejs/undici/issues/4070)
[#&#8203;4091](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4091)
[#&#8203;4088](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4088)
[#&#8203;4070](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4070)
[#&#8203;4027](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4027)
[#&#8203;4084](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4084)
[#&#8203;4029](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4029)
[#&#8203;4044](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4044)

###
[`v3.4.4`](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/releases/tag/v3.4.4)

[Compare
Source](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/compare/v3.4.2...v3.4.4)

##### Bug Fixes

- update README.md
([#&#8203;585](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/585))
([a16f08e](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/commit/a16f08e0f2b08d9b465ee01576d4ef55380d034e))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/defenseunicorns/uds-core).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ronag added a commit to nxtedition/undici that referenced this pull request Mar 14, 2025
@ronag
Merge remote-tracking branch 'nodejs/main'
cd214d4
* nodejs/main: (23 commits)
  Bumped v7.5.0 (nodejs#4091)
  Removed clients with unrecoverable errors from the Pool (nodejs#4088)
  feat: Allow disabling autoSelectFamily in an Agent (nodejs#4070)
  chore: update cache tests (nodejs#4027)
  fix: Fix retry-handler.js when retry-after header is a Date (nodejs#4084)
  feat: add mock call history to access request configuration in test (nodejs#4029)
  feat(docs): button to switch dark and light mode (nodejs#4044)
  Bumped v7.4.0 (nodejs#4071)
  fix: fix EnvHttpProxyAgent for the Node.js bundle (nodejs#4064)
  chore: update WPT (nodejs#4062)
  chore: update WPT (nodejs#4028)
  fix: handle missing vary header values (nodejs#4031)
  fix: do not throw unhandled exception when data is undefined in interceptor.reply (nodejs#4036)
  test: fix windows wpt (nodejs#4050)
  feat: mark `EnvHttpProxyAgent` as stable (nodejs#4049)
  don't check AbortSignal maxListeners on some node versions (nodejs#4045)
  feat(docs): copy to clipboard button (nodejs#4037)
  docs: fix incorrect method signature of `onResponseError` (nodejs#4030)
  docs: document about global dispatcher and errors (nodejs#3987) (nodejs#4014)
  chore: update WPT (nodejs#4011)
  ...
@github-actions github-actions Bot mentioned this pull request May 12, 2025
[Release] v6.21.3 #4211
Closed
mjnagel pushed a commit to BagelLab/uds-core that referenced this pull request Nov 14, 2025
@renovate @mjnagel
chore(deps): update support-deps (defenseunicorns#1354)
2d02e71
This PR contains the following updates:

| Package | Type | Update | Change | Age | Adoption | Passing |
Confidence |
|---|---|---|---|---|---|---|---|
| aws | required_provider | minor | `~> 5.90.0` -> `~> 5.91.0` |
[![age](https://developer.mend.io/api/mc/badges/age/terraform-provider/hashicorp%2faws/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/terraform-provider/hashicorp%2faws/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/terraform-provider/hashicorp%2faws/5.90.1/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/terraform-provider/hashicorp%2faws/5.90.1/5.91.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[kubernetes-fluent-client](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client)
| devDependencies | patch | [`3.4.2` ->
`3.4.5`](https://renovatebot.com/diffs/npm/kubernetes-fluent-client/3.4.2/3.4.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/kubernetes-fluent-client/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/kubernetes-fluent-client/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/kubernetes-fluent-client/3.4.2/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/kubernetes-fluent-client/3.4.2/3.4.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>defenseunicorns/kubernetes-fluent-client
(kubernetes-fluent-client)</summary>

###
[`v3.4.5`](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/releases/tag/v3.4.5)

[Compare
Source](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/compare/v3.4.4...v3.4.5)

##### Bug Fixes

- undici bump with new features
([#&#8203;586](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/586))
([38d9159](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/commit/38d9159bf34029ac4e2cff238857b4609a454281)),
closes
[nodejs/undici#4044](https://redirect.github.com/nodejs/undici/issues/4044)
[nodejs/undici#4029](https://redirect.github.com/nodejs/undici/issues/4029)
[nodejs/undici#4084](https://redirect.github.com/nodejs/undici/issues/4084)
[nodejs/undici#4027](https://redirect.github.com/nodejs/undici/issues/4027)
[nodejs/undici#4070](https://redirect.github.com/nodejs/undici/issues/4070)
[nodejs/undici#4088](https://redirect.github.com/nodejs/undici/issues/4088)
[nodejs/undici#4029](https://redirect.github.com/nodejs/undici/issues/4029)
[nodejs/undici#4084](https://redirect.github.com/nodejs/undici/issues/4084)
[nodejs/undici#4070](https://redirect.github.com/nodejs/undici/issues/4070)
[#&#8203;4091](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4091)
[#&#8203;4088](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4088)
[#&#8203;4070](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4070)
[#&#8203;4027](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4027)
[#&#8203;4084](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4084)
[#&#8203;4029](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4029)
[#&#8203;4044](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/4044)

###
[`v3.4.4`](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/releases/tag/v3.4.4)

[Compare
Source](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/compare/v3.4.2...v3.4.4)

##### Bug Fixes

- update README.md
([#&#8203;585](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/issues/585))
([a16f08e](https://redirect.github.com/defenseunicorns/kubernetes-fluent-client/commit/a16f08e0f2b08d9b465ee01576d4ef55380d034e))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/defenseunicorns/uds-core).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mcollina mcollina mcollina approved these changes
@metcoder95 metcoder95 metcoder95 approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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.

3 participants

@hitsthings @mcollina @metcoder95
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.