]> 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>
Tue, 20 Oct 2009 20:54:19 +0000 (13:54 -0700)
commitcc112e7a59d441d28a1d195cb48f23887df51929
tree5cb4f681abc25511e29c48583f6223b117a0efc7
parente7e057346fa456cb27c54112a4dba311bcaf9aaf
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

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>
src/rx/rx.c