threads / rfc / 58112

RFC patchcredential-cache: also handle ECONNABORTED connection closure

Subject: [RFC PATCH 1A] credential-cache: also handle ECONNABORTED connection closure

## tl;dr

One message between Jul 7, 2022 and Jul 7, 2022. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Ramsay Jones· Jul 7, 2022, 01:54 UTC · lore
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
 builtin/credential-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to builtin/credential-cache.c +1 −1
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)
-- 
2.37.0

← back to recent threads