Explorar el Código

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 hace 3 años
padre
commit
e49a33143c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
     )