-
-
Notifications
You must be signed in to change notification settings - Fork 676
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
After undici added support for http2, allowH2 was added to the buildConnector parameters, but was not added to the type definition.
Line 76 in 882ff6d
| function buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, ...opts }) { |
Lines 256 to 265 in 882ff6d
| connect = buildConnector({ | |
| ...tls, | |
| maxCachedSessions, | |
| allowH2, | |
| socketPath, | |
| timeout: connectTimeout, | |
| ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined), | |
| ...connect | |
| }) | |
| } |
Lines 55 to 64 in 882ff6d
| connect = buildConnector({ | |
| ...tls, | |
| maxCachedSessions, | |
| allowH2, | |
| socketPath, | |
| timeout: connectTimeout == null ? 10e3 : connectTimeout, | |
| ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined), | |
| ...connect | |
| }) | |
| } |
Lines 7 to 15 in 882ff6d
| declare namespace buildConnector { | |
| export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & { | |
| maxCachedSessions?: number | null; | |
| socketPath?: string | null; | |
| timeout?: number | null; | |
| port?: number; | |
| keepAlive?: boolean | null; | |
| keepAliveInitialDelay?: number | null; | |
| } |
Reproducible By
Expected Behavior
Logs & Screenshots
Environment
- undici 5.25.4
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working