|
|
@ -434,12 +434,13 @@ public abstract class BasePackFetchConnection extends BasePackConnection |
|
|
|
int havesSinceLastContinue = 0; |
|
|
|
int havesSinceLastContinue = 0; |
|
|
|
boolean receivedContinue = false; |
|
|
|
boolean receivedContinue = false; |
|
|
|
boolean receivedAck = false; |
|
|
|
boolean receivedAck = false; |
|
|
|
|
|
|
|
boolean negotiate = true; |
|
|
|
|
|
|
|
|
|
|
|
if (statelessRPC) |
|
|
|
if (statelessRPC) |
|
|
|
state.writeTo(out, null); |
|
|
|
state.writeTo(out, null); |
|
|
|
|
|
|
|
|
|
|
|
negotiateBegin(); |
|
|
|
negotiateBegin(); |
|
|
|
SEND_HAVES: for (;;) { |
|
|
|
SEND_HAVES: while (negotiate) { |
|
|
|
final RevCommit c = walk.next(); |
|
|
|
final RevCommit c = walk.next(); |
|
|
|
if (c == null) |
|
|
|
if (c == null) |
|
|
|
break SEND_HAVES; |
|
|
|
break SEND_HAVES; |
|
|
@ -505,6 +506,8 @@ public abstract class BasePackFetchConnection extends BasePackConnection |
|
|
|
receivedAck = true; |
|
|
|
receivedAck = true; |
|
|
|
receivedContinue = true; |
|
|
|
receivedContinue = true; |
|
|
|
havesSinceLastContinue = 0; |
|
|
|
havesSinceLastContinue = 0; |
|
|
|
|
|
|
|
if (anr == AckNackResult.ACK_READY) |
|
|
|
|
|
|
|
negotiate = false; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|