fix-congestion-tracking-20060813
authorChas Williams <chas@cmf.nrl.navy.mil>
Sun, 13 Aug 2006 17:40:27 +0000 (17:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 13 Aug 2006 17:40:27 +0000 (17:40 +0000)
FIXES 36951

fix congestion tracking

src/rx/rx.c

index 7a1efaf..e4d7a7e 100644 (file)
@@ -3902,10 +3902,11 @@ rxi_ReceiveAckPacket(register struct rx_call *call, struct rx_packet *np,
         * be unable to accept packets of the size that prior AFS versions would
         * send without asking.  */
        if (peer->maxMTU != tSize) {
+           if (peer->maxMTU > tSize) /* possible cong., maxMTU decreased */
+               peer->congestSeq++;
            peer->maxMTU = tSize;
            peer->MTU = MIN(tSize, peer->MTU);
            call->MTU = MIN(call->MTU, tSize);
-           peer->congestSeq++;
        }
 
        if (np->length == rx_AckDataSize(ap->nAcks) + 3 * sizeof(afs_int32)) {