- Gitea version (or commit ref): 1.11.5
- Git version: 2.11.0
- Operating system: Debian 9
- Database (use
[x]):
- Can you reproduce the bug at https://try.gitea.io:
- Log gist: Nothing can be found in logs, which I consider a bug too. Could we log timeout reached as ERROR or at least WARNING?
Description
We have a 700MB+ release in ZIP format which cannot be downloaded from gitea.
Manually running git archive (using the same parameters as gitea runs it with) takes 1m3.466s of real time (0m53.936s user + 0m6.416s system) on our machine. It seems it is just over 60 second limit defined in:
|
// DefaultCommandExecutionTimeout default command execution timeout duration |
|
DefaultCommandExecutionTimeout = 60 * time.Second |
I can see git archive is called without a specific timeout set:
|
_, err := NewCommand(args...).RunInDir(c.repo.Path) |
git.timeout/DEFAULT should be used instead of DefaultCommandExecutionTimeout.
[x]):Description
We have a 700MB+ release in ZIP format which cannot be downloaded from gitea.
Manually running git archive (using the same parameters as gitea runs it with) takes 1m3.466s of real time (0m53.936s user + 0m6.416s system) on our machine. It seems it is just over 60 second limit defined in:
gitea/modules/git/command.go
Lines 24 to 25 in c8d7ae1
I can see git archive is called without a specific timeout set:
gitea/modules/git/commit_archive.go
Line 61 in c8d7ae1
git.timeout/DEFAULT should be used instead of DefaultCommandExecutionTimeout.