forgejo/routers/web/auth
Gusted 9c5c08859d
[BUG] Make logout event non-blocking
- When people click on the logout button, a event is sent to all
browser tabs (actually to a shared worker) to notify them of this
logout. This is done in a blocking fashion, to ensure every registered
channel (which realistically should be one for every user because of the
shared worker) for a user receives this message. While doing this, it
locks the mutex for the eventsource module.
- Codeberg is currently observing a deadlock that's caused by this
blocking behavior, a channel isn't receiving the logout event. We
currently don't have a good theory of why this is being caused. This in
turn is causing that the logout functionality is no longer working and
people no longer receive notifications, unless they refresh the page.
- This patchs makes this message non-blocking and thus making it
consistent with the other messages. We don't see a good reason why this
specific event needs to be blocking and the commit introducing it
doesn't offer a rationale either.
2024-08-12 19:13:23 +02:00
..
2fa.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
auth.go [BUG] Make logout event non-blocking 2024-08-12 19:13:23 +02:00
auth_test.go Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-11 23:36:58 +07:00
linkaccount.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth.go cherry-pick OIDC changes from gitea (#4724) 2024-08-08 06:32:14 +00:00
oauth_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
openid.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
password.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
webauthn.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00