git-lfs/lfshttp
brian m. carlson b44cbe40ef
ssh: disable concurrent transfers if no multiplexing
Right now, we try to spawn multiple SSH connections using ControlMaster
when making multiple requests.  However, if multiplexing is not enabled,
we can spawn multiple actual connections, which can be expensive and
require lots of authentication requests.

Instead, let's make sure we don't enable multiple connections if
multiplexing is not enabled, since this may cause the user to be
prompted for multiple SSH key connection attempts (say, if they're
using a security key) and is substantially more heavyweight than simply
spawning a new process over the same connection.

Since the code has different behaviour if `XDG_RUNTIME_DIR` is set, make
sure to unset it for the tests so that we always try to create a
temporary directory and don't otherwise fail because that environment
variable points somewhere unexpected.
2022-10-14 14:34:52 +00:00
..
standalone subprocess: report errors when finding executables 2022-04-19 09:45:20 -07:00
body.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
certs_darwin.go subprocess: report errors when finding executables 2022-04-19 09:45:20 -07:00
certs_nix.go Update formatting for Go 1.17 2021-08-17 20:24:58 +02:00
certs_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
certs_windows.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
certs.go Set package version to v3 2021-09-02 20:41:08 +00:00
client_test.go commands,lfs{api,http}: uppercase HTTP in messages 2022-01-29 22:25:07 -08:00
client.go lfshttp: log the Negotiate error on failure 2022-05-10 20:51:49 +00:00
cookies.go Set package version to v3 2021-09-02 20:41:08 +00:00
endpoint.go update inline comments to Go v1.19 doc format 2022-09-25 18:15:31 -07:00
errors.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
lfshttp.go avoid extra message format parsing where possible 2022-01-29 22:32:58 -08:00
proxy_test.go lfshttp/proxy: consider scheme of request URL when choosing proxy 2021-02-03 20:27:39 +00:00
proxy.go Set package version to v3 2021-09-02 20:41:08 +00:00
retries_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
retries.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
ssh_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
ssh.go ssh: disable concurrent transfers if no multiplexing 2022-10-14 14:34:52 +00:00
stats_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
stats.go Set package version to v3 2021-09-02 20:41:08 +00:00
verbose_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
verbose.go revise some informational and error messages 2022-01-29 22:10:48 -08:00