source-controller/pkg/git
Paulo Gomes 68eece48fb
libgit2: optimise mutex on cached connections
Previously the mutex.Lock was acquired before creating
a new connection. The lock would then hold until the
process was finished, and all network latency would be
absorbed by other goroutines trying to establish a new
connection.

Now the lock is acquired after the connection has been
created. The downside of this approach is that concurrent
goroutine may be trying to open a connection to the same
target. The loser in the race will then have to Close the
connection and use the winner's instead.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-07 19:10:54 +01:00
..
gogit add flag to allow configuration of SSH kex algos 2022-04-07 16:43:15 +05:30
libgit2 libgit2: optimise mutex on cached connections 2022-04-07 19:10:54 +01:00
strategy libgit2: Configured libgit2 clone ProxyOptions 2022-01-18 19:35:47 +00:00
git.go pkg/git: Include commit message and URL in error 2022-02-14 21:34:27 +05:30
git_test.go pkg/git: Include commit message and URL in error 2022-02-14 21:34:27 +05:30
options.go add flag to allow configuration of SSH kex algos 2022-04-07 16:43:15 +05:30
options_test.go Add Host field check in AuthOptions.Validate() 2021-10-27 00:43:31 +05:30