Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make immediate unload optional #683

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

georeith
Copy link
Collaborator

Currently the debounce argument used to debounce onStoreDocument is ignored when the last client for a document disconnects.

However if your onStoreDocument call is rate limited this means that a client can DOS your server by repeatedly opening and closing a document, preventing storage of it.

From what I can see we don't actually need to run this immediately as the unload happens after onStoreDocument only if there are still no connections.

@janthurau janthurau merged commit 8554c9a into ueberdosis:main Aug 24, 2023
3 checks passed
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.

None yet

2 participants