forgejo/modules
parnic 27789908d8
Use request timeout for git service rpc (#20689)
This enables git.Command's Run to optionally use the given context directly so its deadline will be respected. Otherwise, it falls back to the previous behavior of using the supplied timeout or a default timeout value of 360 seconds.

repo's serviceRPC() calls now use the context's deadline (which is unset/unlimited) instead of the default 6-minute timeout. This means that large repo clones will no longer arbitrarily time out on the upload-pack step, and pushes can take longer than 6 minutes on the receive-pack step.

Fixes #20680

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-08-06 16:13:11 +03:00
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
container
context Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
convert Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
csv
doctor Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
emoji
eventsource
generate
git Use request timeout for git service rpc (#20689) 2022-08-06 16:13:11 +03:00
gitgraph
graceful
hcaptcha
highlight Rework file highlight rendering and fix yaml copy-paste (#19967) 2022-07-30 21:17:43 +02:00
hostmatcher Add tests for the host checking logic, clarify the behaviors (#20328) 2022-07-13 09:07:16 +08:00
httpcache Add Cache-Control header to html and api responses, add no-transform (#20432) 2022-07-23 14:38:03 +08:00
httplib
indexer Fix dump-repo git init, fix wrong error type for NullDownloader (#20182) 2022-07-01 07:48:25 +08:00
json
lfs Removed some vestigial code related to Range bounds checks (#20312) 2022-07-28 11:04:36 +08:00
log
markup Should also support upper-case README files (#20581) 2022-08-01 20:15:40 +08:00
metrics
migration Fix dump-repo git init, fix wrong error type for NullDownloader (#20182) 2022-07-01 07:48:25 +08:00
mirror Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
nosql Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
notification Added email notification option to receive all own messages (#20179) 2022-07-28 16:30:12 +08:00
options
packages Fix package upload for files >32mb (#20622) 2022-08-02 21:35:48 +08:00
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
regexplru
repository Executable check always returns true for windows (#20637) 2022-08-04 15:28:32 +08:00
secret
session
setting Increase default item listing size ISSUE_PAGING_NUM to 20 (#20547) 2022-08-06 18:43:40 +08:00
sitemap
ssh Use strings.Cut for GIT_PROTOCOL value (#20638) 2022-08-03 01:34:50 +03:00
storage
structs Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
svg
sync
templates Add disable download source configuration (#20548) 2022-07-31 18:57:02 +02:00
test
timeutil
translation Allow dev i18n to be more concurrent (#20159) 2022-07-04 12:17:09 +02:00
typesniffer Rework raw file http header logic (#20484) 2022-07-29 17:26:55 +02:00
updatechecker
upload
uri
user
util Fix package upload for files >32mb (#20622) 2022-08-02 21:35:48 +08:00
validation
web Fix various typos (#20338) 2022-07-12 23:32:37 +02:00