TUN-8452: Add flag to control QUIC stream-level flow control limit

This commit is contained in:
chungthuang
2024-06-06 11:50:46 -05:00
parent e0b1899e97
commit 354a5bb8af
3 changed files with 16 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ type TunnelConfig struct {
DisableQUICPathMTUDiscovery bool
QUICConnectionLevelFlowControlLimit uint64
QUICStreamLevelFlowControlLimit uint64
FeatureSelector *features.FeatureSelector
}
@@ -578,6 +579,7 @@ func (e *EdgeTunnelServer) serveQUIC(
Tracer: quicpogs.NewClientTracer(connLogger.Logger(), connIndex),
DisablePathMTUDiscovery: e.config.DisableQUICPathMTUDiscovery,
MaxConnectionReceiveWindow: e.config.QUICConnectionLevelFlowControlLimit,
MaxStreamReceiveWindow: e.config.QUICStreamLevelFlowControlLimit,
}
quicConn, err := connection.NewQUICConnection(