mirror of https://github.com/grpc/grpc-node.git
fix(http2): handle default initial window size correctly
This commit is contained in:
parent
d872278606
commit
aeb7a5fd52
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue