浏览代码

Pass through the right h2 configuration (#1528)

Motivation:

The client passed the target window size through max frame size.

Modifications:

Pass through the right configuration.
George Barnett 3 年之前
父节点
当前提交
e49a33143c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/GRPC/ConnectionPool/PooledChannel.swift

+ 1 - 1
Sources/GRPC/ConnectionPool/PooledChannel.swift

@@ -85,7 +85,7 @@ internal final class PooledChannel: GRPCChannel {
       tlsMode: tlsMode,
       tlsConfiguration: configuration.transportSecurity.tlsConfiguration,
       httpTargetWindowSize: configuration.http2.targetWindowSize,
-      httpMaxFrameSize: configuration.http2.targetWindowSize,
+      httpMaxFrameSize: configuration.http2.maxFrameSize,
       errorDelegate: configuration.errorDelegate,
       debugChannelInitializer: configuration.debugChannelInitializer
     )