Message ID | 8c69c921-3b79-e7e0-9d7b-bf98151e4e6d@ramsayjones.plus.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [RFC,1A] credential-cache: also handle ECONNABORTED connection closure | expand |
diff --git a/builtin/credential-cache.c b/builtin/credential-cache.c index 78c02ad531..84fd513c62 100644 --- a/builtin/credential-cache.c +++ b/builtin/credential-cache.c @@ -27,7 +27,7 @@ static int connection_fatally_broken(int error) static int connection_closed(int error) { - return (error == ECONNRESET); + return (error == ECONNRESET) || (error == ECONNABORTED); } static int connection_fatally_broken(int error)
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> --- builtin/credential-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)