Skip to content

Commit 787297b

Browse files
committed
Merge branch 'rj/cygwin-exit'
Treat ECONNABORTED the same as ECONNRESET in 'git credential-cache' to work around a possible Cygwin regression. This resolves a race condition caused by changes in Cygwin's handling of socket closures, allowing the client to exit cleanly when encountering ECONNABORTED. * rj/cygwin-exit: credential-cache: treat ECONNABORTED like ECONNRESET
2 parents a524cc7 + 468a7e4 commit 787297b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/credential-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static int connection_fatally_broken(int error)
3030

3131
static int connection_closed(int error)
3232
{
33-
return (error == ECONNRESET);
33+
return error == ECONNRESET || error == ECONNABORTED;
3434
}
3535

3636
static int connection_fatally_broken(int error)

0 commit comments

Comments
 (0)