From c69fa8fef4de43182d9e6ebad1d5c1db71148d6d Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 22 Dec 2008 17:14:36 +0000 Subject: [PATCH] rx-idledead-only-ignore-keepalives-20081222 LICENSE IPL10 critical to not ignore e.g. other acks --- src/rx/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx.c b/src/rx/rx.c index 77ea8ca769..eebf1cbc57 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -5524,7 +5524,7 @@ rxi_Send(register struct rx_call *call, register struct rx_packet *p, * idle connections) */ conn->lastSendTime = call->lastSendTime = clock_Sec(); /* Don't count keepalives here, so idleness can be tracked. */ - if (p->header.type != RX_PACKET_TYPE_ACK) + if ((p->header.type != RX_PACKET_TYPE_ACK) || (((struct rx_ackPacket *)rx_DataOf(p))->reason != RX_ACK_PING)) call->lastSendData = call->lastSendTime; }