grpc: add initial_windows_size option

This commit is contained in:
hmol233 2021-12-20 00:47:21 +08:00 committed by yuhan6665
parent 3057a7c999
commit 63da3a5481
4 changed files with 29 additions and 6 deletions

View file

@ -135,6 +135,10 @@ func getGrpcClient(ctx context.Context, dest net.Destination, streamSettings *in
}))
}
if grpcSettings.InitialWindowsSize > 0 {
dialOptions = append(dialOptions, grpc.WithInitialWindowSize(grpcSettings.InitialWindowsSize))
}
var grpcDestHost string
if dest.Address.Family().IsDomain() {
grpcDestHost = dest.Address.Domain()