gitea/modules
Lunny Xiao 304d836a61
Fix shutdown waitgroup panic (#35676)
This PR fixes a panic issue in the WaitGroup that occurs when Gitea is
shut down using Ctrl+C.
It ensures that all active connection pointers in the server are
properly tracked and forcibly closed when the hammer shutdown is
invoked.
The process remains graceful — the normal shutdown sequence runs before
the hammer is triggered, and existing connections are given a timeout
period to complete gracefully.

This PR also fixes `no logger writer` problem. Now the log close will
only be invoked when the command exit.

- Fixes #35468
- Fixes #35551
- Fixes #35559
- Replace #35578

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-25 00:02:58 -07:00
..
actions
activitypub
analyze
assetfs
auth
avatar
badge
base
cache
cachegroup
charset
commitstatus
container
csv
dump
emoji
eventsource
fileicon
generate
git
gitrepo
glob
globallock
graceful Fix shutdown waitgroup panic (#35676) 2025-10-25 00:02:58 -07:00
gtprof
hcaptcha
highlight
hostmatcher
htmlutil
httpcache
httplib
indexer
issue/template
json
label
lfs
lfstransfer
log
markup
mcaptcha
metrics
migration
nosql
optional
options
packages
paginator
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository
reqctx
secret
session
setting Intorduce "config edit-ini" sub command to help maintaining INI config file (#35735) 2025-10-25 10:54:55 +08:00
sitemap
ssh
storage
structs
svg
system
tailmsg
tempdir
templates
test
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker
uri
user
util
validation
web
webhook
zstd