summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-06-09 01:06:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-06-09 01:06:30 (GMT)
commitb37fd14beb39b9f545bd72e42e1bdbb00bad4b3d (patch)
tree73b0516cbdf8593e0fb045d56809db3285275d05 /t/helper
parentded44afa023c981d803b56f42284ed0597a174ee (diff)
parentb0df0c16ead4c5512d506dcbbdf31194d992803c (diff)
downloadgit-b37fd14beb39b9f545bd72e42e1bdbb00bad4b3d.zip
git-b37fd14beb39b9f545bd72e42e1bdbb00bad4b3d.tar.gz
git-b37fd14beb39b9f545bd72e42e1bdbb00bad4b3d.tar.bz2
Merge branch 'dl/remote-curl-deadlock-fix'
On-the-wire protocol v2 easily falls into a deadlock between the remote-curl helper and the fetch-pack process when the server side prematurely throws an error and disconnects. The communication has been updated to make it more robust. * dl/remote-curl-deadlock-fix: stateless-connect: send response end packet pkt-line: define PACKET_READ_RESPONSE_END remote-curl: error on incomplete packet pkt-line: extern packet_length() transport: extract common fetch_pack() call remote-curl: remove label indentation remote-curl: fix typo
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-pkt-line.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/helper/test-pkt-line.c b/t/helper/test-pkt-line.c
index 12ca698..6915295 100644
--- a/t/helper/test-pkt-line.c
+++ b/t/helper/test-pkt-line.c
@@ -46,6 +46,9 @@ static void unpack(void)
case PACKET_READ_DELIM:
printf("0001\n");
break;
+ case PACKET_READ_RESPONSE_END:
+ printf("0002\n");
+ break;
}
}
}
@@ -75,6 +78,7 @@ static void unpack_sideband(void)
case PACKET_READ_FLUSH:
return;
case PACKET_READ_DELIM:
+ case PACKET_READ_RESPONSE_END:
break;
}
}