mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #633] [MERGED] WIP: Subscriber rate limiting #1358
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1358
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/633
Author: @binwiederhier
Created: 2/23/2023
Status: ✅ Merged
Merged: 2/26/2023
Merged by: @binwiederhier
Base:
main← Head:vrate📝 Commits (10+)
d686e1eUse visitor instead of UserID in topicSubscription28b654aKeep track of lastVisitor to a topicfb2fa4cFix m.Expires and prune stale topics based on lastVisitorExpires6bfe4a9Bill to visitor and set TTL in response7c5b9c0only log expiry if applicablec6b64dfremove ttlb9badeeremove TTL, will make a seperate PR36685e9Suggested changes1655f58rate limiting impl 2.0?bc3d897Use mutexes in topic📊 Changes
13 files changed (+578 additions, -106 deletions)
View changed files
📝
docs/releases.md(+13 -1)📝
server/errors.go(+1 -1)📝
server/log.go(+4 -0)📝
server/server.go(+110 -46)📝
server/server_manager.go(+18 -3)📝
server/server_matrix.go(+11 -24)📝
server/server_matrix_test.go(+4 -8)📝
server/server_middleware.go(+33 -1)📝
server/server_test.go(+293 -17)📝
server/topic.go(+35 -4)📝
server/util.go(+29 -0)📝
server/visitor.go(+1 -0)📝
user/manager.go(+26 -1)📄 Description
No description provided
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.