Browse Source

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 years ago
parent
commit
e49a33143c
1 changed files with 1 additions and 1 deletions
  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
     )