Skip to content

exempt a configurable number of MARKREAD commands from fakelag#1978

Merged
slingamn merged 4 commits intoergochat:masterfrom
slingamn:fakelag_budget.2
Aug 23, 2022
Merged

exempt a configurable number of MARKREAD commands from fakelag#1978
slingamn merged 4 commits intoergochat:masterfrom
slingamn:fakelag_budget.2

Conversation

@slingamn
Copy link
Copy Markdown
Member

@slingamn slingamn commented Jul 4, 2022

cc @emersion @progval

This is intended to solve slow reattaches by Goguma after ircv3/ircv3-specifications#489; right now, Goguma sends enough MARKREAD commands to trigger fakelag.

This change seems fairly low risk. The main thing I'm concerned about is that the config file is part of the "public API" of Ergo, so to speak, so I want to be sure that the command-budgets concept is sufficiently expressive and reasonably future-proof.

@slingamn slingamn added this to the v2.11 milestone Jul 4, 2022
@slingamn
Copy link
Copy Markdown
Member Author

Note: can we zero-rate no-op JOIN commands? This helps with clients (like Goguma) attempting to rejoin all channels on reconnection. (However, the long-term fix for this involves communicating that the server is maintaining presence and the client should not attempt to rejoin channels: this prevents the client from rejoining channels that were PART'ed from a different session.)

@slingamn slingamn merged commit be22216 into ergochat:master Aug 23, 2022
@slingamn slingamn deleted the fakelag_budget.2 branch January 28, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant