rx-idledead-only-ignore-keepalives-20081222

LICENSE IPL10

critical to not ignore e.g. other acks
This commit is contained in:
Derrick Brashear 2008-12-22 17:14:36 +00:00
parent 992ec09633
commit c69fa8fef4

View File

@ -5524,7 +5524,7 @@ rxi_Send(register struct rx_call *call, register struct rx_packet *p,
* idle connections) */ * idle connections) */
conn->lastSendTime = call->lastSendTime = clock_Sec(); conn->lastSendTime = call->lastSendTime = clock_Sec();
/* Don't count keepalives here, so idleness can be tracked. */ /* 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; call->lastSendData = call->lastSendTime;
} }