source-controller/pkg/git/libgit2/managed
Paulo Gomes ce92881013
libgit2: remove connection caching
Connection caching was a feature created to resolve
upstream issues raised from concurrent ssh connections.
Some scenarios were based on multiple key exchange
operations happening at the same time.

This PR removes the connection caching, and instead:
- Services Session.StdoutPipe() as soon as possible,
  as it is a known source of blocking SSH connections.
- Reuse SSH connection within the same subtransport,
  eliminating the need for new handshakes when talking
  with the same server.
- Simplifies the entire transport logic for better
  maintainability.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-05-13 11:09:02 +01:00
..
const.go libgit2: refactor max length values into constants 2022-04-07 19:10:50 +01:00
flag.go Add license headers 2022-03-16 16:22:21 +05:30
http.go libgit2: refactor max length values into constants 2022-04-07 19:10:50 +01:00
init.go Improve managed transport observability 2022-03-25 19:08:54 +00:00
managed_test.go tests: algorithms test coverage for go-git and libgit2 2022-05-09 13:31:54 +01:00
options.go Enforce effective URL on error messages 2022-03-16 16:22:21 +05:30
ssh.go libgit2: remove connection caching 2022-05-13 11:09:02 +01:00