想加一个对单个连接做速率控制的功能 #2373
oliver-wxy
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
如果使用ws+nginx,可以在nginx裏配置限速 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前policy按用户分级的控制其实功能很少,现在想加一个对用户分级进行不同的流量速率的控制。看之前19年在老项目的issue里就有人提过这个限速的功能,不知但什么原因一直没有实现。由于我并不是很熟悉go语言,所以使用"golang.org/x/time/rate"在我本地简单实现了一版,不知道大家有什么想法和建议。
Beta Was this translation helpful? Give feedback.
All reactions