Skip to content

Commit ff50c0d

Browse files
pragnagopayojagad
authored andcommitted
[pack]Increase gRpc Server max message size (#5801)
1 parent 86239a3 commit ff50c0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WebJobs.Script.Grpc/Server/GrpcServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class GrpcServer : IRpcServer, IDisposable
1616
private int _shutdown = 0;
1717
private Server _server;
1818
private bool _disposed = false;
19-
public const int MaxMessageLengthBytes = 128 * 1024 * 1024;
19+
public const int MaxMessageLengthBytes = int.MaxValue;
2020

2121
public GrpcServer(FunctionRpc.FunctionRpcBase serviceImpl)
2222
{

src/WebJobs.Script/Workers/Rpc/RpcWorkerConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static class RpcWorkerConstants
2828
public const string RuntimeVersionPlaceholder = "%" + FunctionWorkerRuntimeVersionSettingName + "%";
2929

3030
// Rpc message length
31-
public const int DefaultMaxMessageLengthBytes = 128 * 1024 * 1024;
31+
public const int DefaultMaxMessageLengthBytes = int.MaxValue;
3232

3333
// Capabilites
3434
public const string RawHttpBodyBytes = "RawHttpBodyBytes";

0 commit comments

Comments
 (0)