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
maint
Taylor Blau 2024-11-01 12:53:19 -04:00
commit 787297b396
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,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)