mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #1051] Races in v.User() - Panic in .handleAccountSubscriptionAdd + stats resetter not working #737
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#737
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?
Originally created by @binwiederhier on GitHub (Mar 7, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1051
@binwiederhier commented on GitHub (Mar 7, 2024):
A theory: I think it's this:
@binwiederhier commented on GitHub (Apr 5, 2024):
There may be a race condition issue with resetting in-memory stats as well that is likely related to this race.
@winneratwin commented on GitHub (Mar 18, 2025):
Just wanted to hop in and say that subscribing to topics(only tested websockets) that require authentication before reading also experience this race condition(or a similar one) where the connection will be dropped even when the account is an admin.
Found this out when creating a rust implementation of the ntfy client to minimize concurrent connections(currently it opens a connection for each subscription when less could be used). With 3 connections initiated simultaneously, there is an almost 1/2 chance of getting this race condition leading to one or more of the connections being rejected for being "unauthorized".
Example log line:
The result of
ntfy accessis: