DORMANTno replies

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

From: Ramsay Jones <hidden>
Date: 2022-07-07 01:54:13
Subsystem: the rest · Maintainer: Linus Torvalds


Signed-off-by: Ramsay Jones <redacted>
---
 builtin/credential-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help