Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2022-04-25 17:42:49 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-04-25 17:42:49 +0300
commit1d3a77150ab05beee3b7b2085c417c0b00501e58 (patch)
treeb1cc02210f29223deb93a6c53e3f33130a82799e
parent953a7b80beb340565b30dce713747120552c23e5 (diff)
parent6b1ebb87c1d96ddc9c998ed30344610c4558cc24 (diff)
Merge branch 'jv-yamux-close-timeout' into 'master'
sidechannel: lower yamux close timeout See merge request gitlab-org/gitaly!4491
-rw-r--r--internal/sidechannel/sidechannel.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/sidechannel/sidechannel.go b/internal/sidechannel/sidechannel.go
index 5cffe9efc..a8e7088d5 100644
--- a/internal/sidechannel/sidechannel.go
+++ b/internal/sidechannel/sidechannel.go
@@ -151,6 +151,12 @@ func NewClientHandshaker(logger *logrus.Entry, registry *Registry) client.Handsh
// waste we change this value back to 256KB which is the default and
// minimum value.
cfg.MaxStreamWindowSize = 256 * 1024
+
+ // If a client hangs up while the server is writing data to it then the
+ // server will block for 5 minutes by default before erroring out. This
+ // makes testing difficult and there is no reason to have such a long
+ // timeout in the case of sidechannels. A 1 second timeout is also OK.
+ cfg.StreamCloseTimeout = time.Second
},
)
}