Skip to content

Commit

Permalink
Merge pull request #3444 from VirajSalaka/choreo
Browse files Browse the repository at this point in the history
Bug fix: KeyManager discovery client's  max inbound message size cannot be increased
  • Loading branch information
VirajSalaka authored Oct 10, 2023
2 parents be2d127 + f7bab4c commit c382cd0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public void run() {

public void watchKeyManagers() {
// TODO: implement a deadline with retries
reqObserver = stub.streamKeyManagers(new StreamObserver<>() {
int maxSize = Integer.parseInt(ConfigHolder.getInstance().getEnvVarConfig().getXdsMaxMsgSize());
reqObserver = stub.withMaxInboundMessageSize(maxSize).streamKeyManagers(new StreamObserver<>() {
@Override
public void onNext(DiscoveryResponse response) {
logger.info("Key manager event received with version : " + response.getVersionInfo());
Expand Down

0 comments on commit c382cd0

Please sign in to comment.