forkjo/modules
Gusted 068b80814b [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.

(cherry picked from commit 9c5c08859d)
2024-08-16 14:21:39 +00:00
..
actions enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
activitypub enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
analyze Rename code_langauge.go to code_language.go (#26377) 2023-08-07 15:00:53 -04:00
assetfs enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
auth enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
avatar enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
base enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
cache enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
charset enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
container Add container.FilterSlice function (gitea#30339) 2024-04-16 11:49:44 +02:00
csv enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
emoji Update emoji set to Unicode 15 (#25595) 2023-06-29 16:29:48 +00:00
eventsource [BUG] Make logout event non-blocking 2024-08-16 14:21:39 +00:00
forgefed fix review 2024-05-29 18:31:06 +02:00
generate enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
git enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
gitgraph Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
gitrepo Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-11 23:36:59 +07:00
graceful enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
hcaptcha Consume hcaptcha and pwn deps (#22610) 2023-01-29 09:49:51 -06:00
highlight enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
hostmatcher Support allowed hosts for webhook to work with proxy (#27655) 2023-10-18 09:44:36 +00:00
html Refactor backend SVG package and add tests (#26335) 2023-08-05 04:34:59 +00:00
httpcache [BRANDING] add X-Forgejo-* headers 2024-02-05 16:02:14 +01:00
httplib enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
indexer enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
issue/template Support setting the default attribute of the issue template dropdown field (#31045) 2024-05-26 20:13:09 +02:00
json Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
label Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
lfs enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
log enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
markup disallow javascript: URI in the repository description 2024-08-09 05:57:21 +00:00
mcaptcha Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
metrics Rename project board -> column to make the UI less confusing (#30170) 2024-06-02 09:42:39 +02:00
migration enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
nosql s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
optional enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
options Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
packages enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
paginator Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
pprof Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
private fix(hook): ignore unknown push options instead of failing 2024-07-02 20:18:33 +00:00
process Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
proxy Use proxy for pull mirror (#22771) 2023-02-11 08:39:50 +08:00
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
public Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
queue enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
recaptcha Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
references enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
regexplru enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
repository enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
secret enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
session Avoid importing modules/web/middleware in modules/session (#30584) 2024-04-21 16:28:16 +02:00
setting enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
sitemap enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
ssh Remove SSH workaround (#27893) 2023-11-03 15:21:05 +00:00
storage enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
structs enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
svg Refactor backend SVG package and add tests (#26335) 2023-08-05 04:34:59 +00:00
sync Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
system enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
templates enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
test test(util): MockProtect when mocking multiple times 2024-06-02 15:24:06 +02:00
testlogger Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
timeutil Remove the time-since class (#29826) 2024-03-20 08:46:30 +01:00
translation enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
turnstile Add new captcha: cloudflare turnstile (#22369) 2023-02-05 15:29:03 +08:00
typesniffer enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
updatechecker enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
uri enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
user enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
util enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
validation added validation fixes 2024-05-14 08:31:34 +02:00
web enable linter testifylint on v8 (#4573) 2024-07-30 19:41:27 +00:00
webhook Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00