mirror of
https://github.com/lingble/talos.git
synced 2025-11-02 05:28:09 +00:00
fix: set max msg recv size when proxying
Previously a fix was deployed in the Talos API client, but when the request passes through `apid`, we need to make sure that proxy doesn't reject large responses. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
@@ -101,6 +101,9 @@ func (a *APID) GetConnection(ctx context.Context, fullMethodName string) (contex
|
||||
// see: https://github.com/grpc/grpc-go/blob/d5dee5fdbdeb52f6ea10b37b2cc7ce37814642d7/clientconn.go#L55-L56
|
||||
MinConnectTimeout: 20 * time.Second,
|
||||
}),
|
||||
grpc.WithDefaultCallOptions(
|
||||
grpc.MaxCallRecvMsgSize(constants.GRPCMaxMessageSize),
|
||||
),
|
||||
grpc.WithCodec(proxy.Codec()), //nolint:staticcheck
|
||||
grpc.WithSharedWriteBuffer(true),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user