forgejo/modules
zeripath 1a5659943e
Add timeout to writing to responses (#15831)
In #15826 it has become apparent that there are a few occasions when a response can
hang during writing, and because there is no timeout go will happily just block
interminably. This PR adds a fixed 5 second timeout to all writes to a connection.

Fix #15826

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-14 13:26:03 +01:00
..
analyze
auth
avatar Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
base fix truncate utf8 string (#15828) 2021-05-13 08:50:57 +01:00
cache
charset
context Stop calling WriteHeader in Write (#15862) 2021-05-14 11:05:50 +03:00
convert Fix individual tests (addition to #15802) (#15818) 2021-05-12 00:13:42 -04:00
cron
csv
doctor Add err to log (#15813) 2021-05-10 20:48:23 +01:00
emoji
eventsource
generate Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
git Tagger can be empty, as can Commit and Author - tolerate this (#15835) 2021-05-12 01:11:42 -04:00
gitgraph
graceful Add timeout to writing to responses (#15831) 2021-05-14 13:26:03 +01:00
hcaptcha
highlight Allow custom highlight mapping beyond file extensions (#15808) 2021-05-13 12:31:23 +03:00
httpcache
httplib
indexer On open repository open common cat file batch and batch-check (#15667) 2021-05-10 03:27:03 +02:00
lfs
log
markup
matchlist
metrics
migrations Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790) 2021-05-10 15:57:45 +08:00
nosql
notification
options
password
pprof
private Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790) 2021-05-10 15:57:45 +08:00
process
public
queue Queue manager FlushAll can loop rapidly - add delay (#15733) 2021-05-12 00:22:08 +01:00
recaptcha
references
repofiles
repository
secret Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
session
setting Add mimetype mapping settings (#15133) 2021-05-10 16:38:08 -04:00
ssh
storage
structs Add Active and ProhibitLogin to API (#15689) 2021-05-11 02:22:29 +02:00
svg
sync
task
templates
test
timeutil
translation
upload
uri
user
util Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
validation
web