diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2020-04-27 17:01:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-28 09:55:06 -0700 |
commit | 2f0a093dd640e0dad0b261dae2427f2541b5426c (patch) | |
tree | e774748e9d7d3e42f9a47759d9f1ecfdda80b613 /t/t4038-diff-combined.sh | |
parent | fetch-pack: in protocol v2, in_vain only after ACK (diff) | |
download | tgif-2f0a093dd640e0dad0b261dae2427f2541b5426c.tar.xz |
fetch-pack: in protocol v2, reset in_vain upon ACK
In the function process_acks() in fetch-pack.c, the variable
received_ack is meant to track that an ACK was received, but it was
never set. This results in negotiation terminating prematurely through
the in_vain counter, when the counter should have been reset upon every
ACK.
Therefore, reset the in_vain counter upon every ACK.
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4038-diff-combined.sh')
0 files changed, 0 insertions, 0 deletions