]> git.michaelhowe.org Git - packages/o/openafs.git/commit
prevent rx peer timeout from reaching 0.0 seconds
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 20 Oct 2009 20:16:47 +0000 (16:16 -0400)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 17 Dec 2009 06:56:59 +0000 (22:56 -0800)
commitf97d860db9f98605e5db9ad5a3c44cc6868b8590
treef73a232badbd8a8ab69b7e00fce8ea43a4e603b3
parent17326b471c3f10e2c3bea737901575596a851de4
prevent rx peer timeout from reaching 0.0 seconds

The rx peer timeout is computed from the round trip time
calculation.  It traditionally has had a lowerbound of 350ms.
The computation in rxi_ComputeRoundTripTime() was incorrect
and instead used 350ms as an upperbound.

rxi_ComputeRoundTripTime() had a second problem wherein if
the actually RTT is shorter than the resolution of the clock
then the RTT would quickly approach 0.0 seconds.  Enforce
a lowerbound of 1ms if the RTT for a given packet appears
to be 0.0 seconds.

LICENSE BSD

Change-Id: I83d3a3d64127d4c023df2fce5e45a4df3eb35679
Reviewed-on: http://gerrit.openafs.org/696
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-on: http://gerrit.openafs.org/974
src/rx/rx.c