source-controller/pkg/git
Paulo Gomes bfa4e38b84
libgit2: dispose connections in SubTransport.Close
The average SubTransport lifecycle encompass two Actions calls. Previously,
it was attempted to share the same connection across both calls. That did
not work as some Git Servers do not support multiple sessions from the same
connection. The implementation was not fully transitioned into the
"one connection per action" model, which led to connection being leaked.

The transition to RW mutex was to avoid the unnecessary blocking in the
goroutine at the start of the second action call.

It is worth mentioning that now when the context is done,  the client level
resources (connection) will also be freed. This ensures that SSH connections
will not outlive the subtransport.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-06-08 19:39:50 +01:00
..
gogit pkg/git: introduce concrete and partial commit 2022-05-20 19:52:18 +05:30
libgit2 libgit2: dispose connections in SubTransport.Close 2022-06-08 19:39:50 +01:00
strategy libgit2: enforce context timeout 2022-05-27 13:59:50 +01:00
testdata/git/repo tests: algorithms test coverage for go-git and libgit2 2022-05-09 13:31:54 +01:00
git.go gitrepo: Intro contentConfigChecksum & improvement 2022-05-20 19:52:18 +05:30
git_test.go pkg/git: introduce concrete and partial commit 2022-05-20 19:52:18 +05:30
options.go fix panics on unmanaged http and proxy on managed http 2022-05-27 14:01:23 +05:30
options_test.go Add Host field check in AuthOptions.Validate() 2021-10-27 00:43:31 +05:30