Преглед изворни кода

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
     )