git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jul 7, 2022, 01:54 UTC
Message-ID
<8c69c921-3b79-e7e0-9d7b-bf98151e4e6d@ramsayjones.plus.com>
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
Message 1 of 1 in “credential-cache: also handle ECONNABORTED connection closure”
  1. credential-cache: also handle ECONNABORTED connection closureRamsay Jones, Jul 7, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.