Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use request timeout for git service rpc #20689

Merged
merged 4 commits into from
Aug 6, 2022

Commits on Aug 5, 2022

  1. Use request timeout for git service rpc

    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 go-gitea#20680
    parnic committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    415d167 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36e6eea View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2022

  1. Configuration menu
    Copy the full SHA
    c84f60b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8925efd View commit details
    Browse the repository at this point in the history