RX: Force sane timeout values
authorAndrew Deason <adeason@sinenomine.net>
Fri, 8 Oct 2010 16:51:30 +0000 (11:51 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Thu, 14 Oct 2010 02:52:17 +0000 (19:52 -0700)
commit7d6080a841ff8c91052fa708d5be3b582f8a971d
tree17e828b31974f29db223540d1bf19cd423478887
parent48aca4a605fa46b677a50687d6ea911fbe7d2032
RX: Force sane timeout values

Currently we do not check the specified timeout values when someone
changes a connection's dead, idle, or hard dead time. However, if the
conn's dead time is larger than the other two times, a loss of network
activity will result in one of the other timeouts getting triggered
first.

To prevent this and possibly other problems from happening, force a
connection's timeouts to always obey the relationship
secondsUntilDead <= idleDeadTime <= hardDeadTime, by checking these
values whenever they are changed.

Change-Id: I681dce7f359bf71333e69ceab8186bdc1d54d8dc
Reviewed-on: http://gerrit.openafs.org/2947
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/libafsrpc/afsrpc.def
src/rx/rx.c
src/rx/rx.h
src/rx/rx_prototypes.h
src/shlibafsrpc/libafsrpc.map