Commit 43215d44 authored by hengwen's avatar hengwen

Increase allowed message size received from simulator rpc

parent 7d9eaf2a
Pipeline #190031 canceled with stage
in 5 minutes and 15 seconds
......@@ -48,7 +48,10 @@ public class SimulatorService {
}
this.mapName = filename.replace(".osm", "");
ManagedChannelBuilder<?> channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext();
ManagedChannelBuilder<?> channel = ManagedChannelBuilder
.forAddress(host, port)
.maxInboundMessageSize((int) 30e6) // allow maximum of 30 MByte message from simulator
.usePlaintext();
simulator = SimControllerGrpc.newBlockingStub(channel.build());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment