Skip to content

Commit

Permalink
Increase grpc buffer size (#165)
Browse files Browse the repository at this point in the history
* Increase grpc buffer size

* go mod tidy

* CHANGELOG
  • Loading branch information
ssyno authored Oct 11, 2024
1 parent 52b9f5e commit f339e15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Increased `grpc buffer` size

## [0.11.1] - 2024-10-11

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
github.com/onsi/ginkgo/v2 v2.20.0
github.com/onsi/gomega v1.34.1
github.com/pkg/errors v0.9.1
google.golang.org/grpc v1.65.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.25.0
k8s.io/apimachinery v0.25.0
Expand Down Expand Up @@ -104,7 +105,6 @@ require (
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions internal/pkg/teleport/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
tc "github.com/gravitational/teleport/api/client"
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/types"
"google.golang.org/grpc"

"github.com/giantswarm/microerror"
)
Expand All @@ -27,6 +28,9 @@ var NewClient = func(ctx context.Context, proxyAddr, identityFile string) (Clien
Credentials: []tc.Credentials{
tc.LoadIdentityFileFromString(identityFile),
},
DialOpts: []grpc.DialOption{
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(10 * 1024 * 1024)),
},
})
if err != nil {
return nil, microerror.Mask(err)
Expand Down

0 comments on commit f339e15

Please sign in to comment.