1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 01:35:54 +01:00
gitea/routers
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
..
api Allow multiple metadata files for Maven packages (#20674) 2022-08-05 15:00:47 -04:00
common Rework raw file http header logic (#20484) 2022-07-29 17:26:55 +02:00
install Rework mailer settings (#18982) 2022-08-02 13:24:18 +08:00
private Add missing parameter for error in log message (#20144) 2022-06-27 16:52:22 +03:00
utils A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
web Use request timeout for git service rpc (#20689) 2022-08-06 16:13:11 +03:00
init.go Initialize cron last (#20373) 2022-07-15 16:20:05 +01:00