Commit 8f9d36b5 authored by Stan Hu's avatar Stan Hu

Geo: Increase HTTP read timeout of proxy requests to 60 s

For large pushes over SSH, we observed that it took some time for the
secondary server to hear back from the primary server after the POST
request to the `/api/v4/geo/proxy_git_push/ssh/push` endpoint. The
client would give up on the request and fail the entire push.

To give more room for these pushes to go through, bump the timeout
from the original 10 seconds to 60 seconds.
parent f8e7760d
---
title: 'Geo: Increase HTTP read timeout of proxy requests to 60 s'
merge_request: 14671
author:
type: changed
......@@ -3,7 +3,7 @@
module Gitlab
module Geo
class GitPushSSHProxy
HTTP_READ_TIMEOUT = 10
HTTP_READ_TIMEOUT = 60
INFO_REFS_CONTENT_TYPE = 'application/x-git-upload-pack-request'.freeze
PUSH_CONTENT_TYPE = 'application/x-git-receive-pack-request'.freeze
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment