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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user