]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-rx-client-keep-keepalives-20080522
authorJeffrey Hutzelman <jhutz@cmu.edu>
Thu, 22 May 2008 19:29:19 +0000 (19:29 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 22 May 2008 19:29:19 +0000 (19:29 +0000)
LICENSE IPL10
FIXES 20727

not our bug, but, previous code refactoring broke rx. put back keepalives in cli
ent rx connections while they are turned around.

(cherry picked from commit c34822d6105cef7f68423e4ebbf485b2d11b9635)

src/rx/rx.c

index 41309143bbb659a7c2d49e29898f023616087484..1f5b71c288f30c49bd76b2dd208ea93e91afe83b 100644 (file)
@@ -3920,6 +3920,7 @@ rxi_ReceiveAckPacket(register struct rx_call *call, struct rx_packet *np,
        && call->tfirst + call->nSoftAcked >= call->tnext) {
        call->state = RX_STATE_DALLY;
        rxi_ClearTransmitQueue(call, 0);
+        rxevent_Cancel(call->keepAliveEvent, call, RX_CALL_REFCOUNT_ALIVE);
     } else if (!queue_IsEmpty(&call->tq)) {
        rxi_Start(0, call, 0, istack);
     }
@@ -4184,7 +4185,6 @@ rxi_SetAcksInTransmitQueue(register struct rx_call *call)
     }
 
     rxevent_Cancel(call->resendEvent, call, RX_CALL_REFCOUNT_RESEND);
-    rxevent_Cancel(call->keepAliveEvent, call, RX_CALL_REFCOUNT_ALIVE);
     call->tfirst = call->tnext;
     call->nSoftAcked = 0;
 
@@ -4225,7 +4225,6 @@ rxi_ClearTransmitQueue(register struct rx_call *call, register int force)
 #endif /* AFS_GLOBAL_RXLOCK_KERNEL */
 
     rxevent_Cancel(call->resendEvent, call, RX_CALL_REFCOUNT_RESEND);
-    rxevent_Cancel(call->keepAliveEvent, call, RX_CALL_REFCOUNT_ALIVE);
     call->tfirst = call->tnext;        /* implicitly acknowledge all data already sent */
     call->nSoftAcked = 0;