fix(http2): handle default initial window size correctly

This commit is contained in:
Koen Rijpstra 2025-06-27 14:35:21 +02:00
parent d872278606
commit aeb7a5fd52
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ export class Http2SubchannelConnector implements SubchannelConnector {
});
// Send WINDOW_UPDATE now to avoid 65 KB start-window stall.
const defaultWin = http2.getDefaultSettings().initialWindowSize; // 65 535 B
const defaultWin = http2.getDefaultSettings().initialWindowSize ?? 65535; // 65 535 B
const connWin = options[
'grpc-node.connection_flow_control_window'
] as number | undefined;