THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

Merge branch 'dl/credential-cache-socket-in-xdg-cache'

A recently added test for the "credential-cache" helper revealed
that EOF detection done around the time the connection to the cache
daemon is torn down were flaky.  This was fixed by reacting to
ECONNRESET and behaving as if we got an EOF.

* dl/credential-cache-socket-in-xdg-cache:
  credential-cache: interpret an ECONNRESET as an EOF
tags/v2.15.0-rc0
Junio C Hamano 2 years ago
parent
commit
838eaa9a22
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      credential-cache.c

+ 1
- 1
credential-cache.c View File

@@ -25,7 +25,7 @@ static int send_request(const char *socket, const struct strbuf *out)
int r;

r = read_in_full(fd, in, sizeof(in));
if (r == 0)
if (r == 0 || (r < 0 && errno == ECONNRESET))
break;
if (r < 0)
die_errno("read error from cache daemon");

Loading…
Cancel
Save