Skip to content

Commit aeb7a5f

Browse files
committed
fix(http2): handle default initial window size correctly
1 parent d872278 commit aeb7a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grpc-js/src/transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ export class Http2SubchannelConnector implements SubchannelConnector {
724724
});
725725

726726
// Send WINDOW_UPDATE now to avoid 65 KB start-window stall.
727-
const defaultWin = http2.getDefaultSettings().initialWindowSize; // 65 535 B
727+
const defaultWin = http2.getDefaultSettings().initialWindowSize ?? 65535; // 65 535 B
728728
const connWin = options[
729729
'grpc-node.connection_flow_control_window'
730730
] as number | undefined;

0 commit comments

Comments
 (0)