amphp / http-server

An advanced async HTTP server library for PHP, perfect for real-time apps and APIs with high concurrency demands.
https://amphp.org/http-server
MIT License
1.29k stars 101 forks source link

Add ConcurrencyLimitingMiddleware #351

Closed trowski closed 1 year ago

trowski commented 1 year ago

This PR adds a simple middleware which is attached by default by the static constructors of SocketHttpServer which limits the number of concurrent requests which may be processed by the server.