0

I am working on an existing .Net 6 application. I could see there are many of these exceptions in the logs.

Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate.

When I googled it then found a similar issue here, But in the accepted answer the user mentioned setting the value of MinRequestBodyDataRate as 1024, and in my opinion, it should be set to < 240 (240 is the default value) value. because as per the exception message and the description it is saying that it is receiving the request at a slower rate so ideally so, it means the requester is sending the lesser than the expected bytes per second, so I think I should set it to a lesser value.

I have followed this doc as well, but didn't help much.

I am confused because, in this answer, the user has set the value to 100.

Also, I didn't understand what is a grace period in this context.

Note: I cannot reproduce it in my local system, which I why I can't try and test this. It's happening only in production applications.

Vivek Nuna
  • 25,472
  • 25
  • 109
  • 197
  • I also confused with that answer, From this [Document](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/options?view=aspnetcore-7.0), When the rate drops below the minimum, the connection is timed out. So it specify the value to 100. – Xinran Shen Jul 18 '23 at 06:36
  • @XinranShen thank you for sharing this doc, It is helpful. – Vivek Nuna Jul 18 '23 at 08:54

0 Answers0