Closed Nebulizer1213 closed 2 years ago
this may be a duplicate of #1173. Additionally, IIRC @abrookins also had this issue and may have been looking into it.
I'll also play around after my exams.
ok thanks
Any updates on this?
No, do you have the same problem is you use aredis? Perhaps they managed to fix the logic issues.
I have the problem with aredis
Hello and thanks for your bug report! Nothing jumps out at me while reading your code. Can you give a minimum reproducible example showing how you use the rate limiter and how you're initiating the load test, so I can reproduce?
On Fri, Nov 5, 2021 at 6:21 PM Nebulizer1213 @.***> wrote:
I have the problem with aredis
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/aio-libs/aioredis-py/issues/1179#issuecomment-962313763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXXHUDXAYVWWDNHS2BD43UKSGITANCNFSM5GMMRVAA .
The code has been updated since I made this issue. The newer version is on pypi. It's called aiohttp-ratelimiter. Examples of how to use it can be found in the README on my repo. The bug happens when I dos the website.
Describe the bug
When I dos my website I get this error
aioredis.exceptions.ConnectionError: max number of clients reached
. I do not get this error when using the non async redis library.To Reproduce
code : https://pastecord.com/pozywivufa.py
Expected behavior
I would expect this to ratelimit the requests from the dos attack.
Logs/tracebacks
Python Version
aioredis Version
Additional context
No response
Code of Conduct