You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 8. How to configure the read threshold of the connection?
562
+
563
+
By default, Netpoll does not place any limit on the reading speed of data sent by the end.
564
+
Whenever there have more data on the connection, Netpoll will read the data into its own buffer as quickly as possible.
565
+
566
+
But sometimes users may not want data to be read too quickly, or they want to control the service memory usage, or the user's OnRequest callback processing data very slowly and need to control the peer's send speed.
567
+
In this case, you can use `WithReadThreshold` to control the maximum reading threshold.
0 commit comments