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 ECONNRESETmaint
commit
787297b396
|
|
@ -30,7 +30,7 @@ static int connection_fatally_broken(int error)
|
||||||
|
|
||||||
static int connection_closed(int error)
|
static int connection_closed(int error)
|
||||||
{
|
{
|
||||||
return (error == ECONNRESET);
|
return error == ECONNRESET || error == ECONNABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int connection_fatally_broken(int error)
|
static int connection_fatally_broken(int error)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue