Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

added rate-limit #568

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raftx24
Copy link

@raftx24 raftx24 commented Apr 8, 2021

when you have 10K users and 5 channels per user and accidentally echo-server restart, the application will receive 50K auth requests concurrently and it can make the server down!
I added maxAuthConcurrentRequests for fixing this issue.

@@ -81,6 +81,7 @@ Edit the default configuration of the server by adding options to your **laravel
| `apiOriginAllow` | `{}` | Configuration to allow API be accessed over CORS. [Example](#cross-domain-access-to-api) |
| `authEndpoint` | `/broadcasting/auth` | The route that authenticates private channels |
| `authHost` | `http://localhost` | The host of the server that authenticates private and presence channels |
| `maxConcurrentAuthRequests` | `null` | Max number of concurrent auth requests, null -> unlimited |
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant