From: Chas Williams Date: Sun, 13 Aug 2006 17:40:27 +0000 (+0000) Subject: fix-congestion-tracking-20060813 X-Git-Tag: BP-openafs-windows-kdfs-ifs~1099 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=031c1819239b5ece45027b25283d980ddc507c93;p=packages%2Fo%2Fopenafs.git fix-congestion-tracking-20060813 FIXES 36951 fix congestion tracking --- diff --git a/src/rx/rx.c b/src/rx/rx.c index 7a1efaf0d..e4d7a7eda 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -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)) {