mirror of
https://github.com/mastodon/flodgatt
synced 2025-04-11 22:58:25 +02:00

This commit tracks the number of active Pub/Sub streams and adds code to keep the total number of streams below 400. (When additional users attempt to connect past that point, the server will wait for an slot to open up). This prevents "too many open file" panics and makes the server better behaved in general. However, we may need to revisit it based on what capacity we want the server to have. This commit also includes some general refactoring.
RageQuit
A blazingly fast drop-in replacement for the Mastodon streaming api server
Usage
$ ragequit --port 4002 # Default port is 3666
Languages
Rust
99.7%
Shell
0.3%