mirror of
1
Fork 0
forgejo/routers
parnic a04fc567b4
Use request timeout for git service rpc (#20689) (#20693)
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
2022-08-07 10:37:48 +08:00
..
api Send correct NuGet status codes (#20647) (#20677) 2022-08-05 09:38:04 +08:00
common Rework raw file http header logic (#20484) (#20542) 2022-07-30 18:37:02 +02:00
install Add Cache-Control header to html and api responses, add no-transform (#20432) (#20459) 2022-07-23 11:58:58 +01:00
private move agit dependcy (#19998) 2022-06-17 20:17:12 +02: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) (#20693) 2022-08-07 10:37:48 +08:00
init.go Initialize cron last (#20373) (#20384) 2022-07-15 13:44:22 -04:00