git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [RFC PATCH 1A] credential-cache: also handle ECONNABORTED connection closure
@ 2022-07-07  1:54 Ramsay Jones
  0 siblings, 0 replies; only message in thread
From: Ramsay Jones @ 2022-07-07  1:54 UTC (permalink / raw)
  To: Adam Dinwoodie; +Cc: GIT Mailing-list



Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-07  1:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07  1:54 [RFC PATCH 1A] credential-cache: also handle ECONNABORTED connection closure Ramsay Jones

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).