Commit b00b51d
authored
[FTR] Configure undici timeouts on KbnClient dispatcher (#270932)
## Summary
Set `connect.timeout = 60s` on the undici `Agent` used by
`KbnClientRequester` (https path only).
## Why
#268531 migrated `KbnClient` from axios to native fetch but did not
override undici's 10s `connect.timeout` default. Axios had no equivalent
cutoff, so FTR callers talking to a busy local Kibana started failing
once that PR landed.
The `kibana-streams-performance` weekly pipeline went red in builds #9,
#11, #12, and #13 with:
```
ConnectTimeoutError: Connect Timeout Error (attempted address: localhost:5620, timeout: 10000ms)
```
The `10000ms` is undici's default. Bisect: build #8 last green
(2026-05-11) → #9 first red (2026-05-18), with #268531 in the window.
## What changed
`src/platform/packages/shared/kbn-kbn-client/src/kbn_client/kbn_client_requester.ts`:
one constant, one option on the https `Agent`. http branch unchanged.
## Related
Regression introduced in #268531. Companion streams perf PR: #270636.
## Validation
https://buildkite.com/elastic/kibana-streams-performance/builds/141 parent b7a8104 commit b00b51d
1 file changed
Lines changed: 13 additions & 1 deletion
File tree
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| |||
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
148 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
149 | 161 | | |
150 | 162 | | |
151 | 163 | | |
| |||
0 commit comments