Skip to content
Snippets Groups Projects

Let gitlab-git-http-server handle archive downloads

Merged username-removed-5302 requested to merge git-archive-golang into master

This change relies on changes in gitlab_git and gitlab-git-http-server.

fixes #2429 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
113 113 proxy_pass http://gitlab;
114 114 }
115 115
116 location ~ [-\/\w\.]+\.git\/ {
116 location ~ ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$ {
117 # 'Error' 418 is a hack to re-use the @gitlab-git-http-server block
  • @jacobvosmaer What can we expect if archive is not built yet (not cached to disk) but we receive a new request? Will the request wait? I mean, do we have some mutex there?

  • @vsizov both requests will create an archive concurrently, each in a different tempfile. The last tempfile to finish will become the cached archive.

  • Hm, If time needed to build archive is one second but we have two requests per second?

  • Is it place for (D)DOS attack?

    Edited by Valery Sizov
  • @vsizov this implementation does not put a limit on the number of archives being created concurrently.

  • Added 1 commit:

    • 549a840e - Fix NGINX API download regex
  • Added 1 commit:

    • 033a879c - Fix NGINX API download regex
  • The build is failing because I forgot to fix/delete some archive tests.

  • Added 2 commits:

    • fc94b3b0 - Fix API archive specs
    • 8f143326 - Remove RepositoryArchiveWorker specs
  • Added 2 commits:

    • 381ca79b - Remove archive file sending spec
    • a74915a4 - Always return HTML in git_not_found
  • Added 1 commit:

    • 83f04853 - Update gitlab_git to 7.2.19
  • Douwe Maan Added 221 commits:

    Added 221 commits:

  • Douwe Maan Status changed to merged

    Status changed to merged

  • Douwe Maan mentioned in commit 4b28f2d9

    mentioned in commit 4b28f2d9

  • mentioned in issue #3063 (closed)

  • Please register or sign in to reply
    Loading