Skip to content

Commit c82f6c9

Browse files
authored
Set the kestrel MaxRequestBodySize=null for gRPC (#11296)
1 parent 08fa0c6 commit c82f6c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public static IHostBuilder CreateHostBuilder(
2424
{
2525
webBuilder.UseKestrel(options =>
2626
{
27+
// No limit. This server is exclusively between host and worker. All clients are trusted.
28+
options.Limits.MaxRequestBodySize = null;
2729
options.Listen(IPAddress.Parse(WorkerConstants.HostName), port, listenOptions =>
2830
{
2931
listenOptions.Protocols = HttpProtocols.Http2;

0 commit comments

Comments
 (0)