If the connection is no longer in use, reset the nat keep alive
timer to 0 seconds.
Change-Id: I72b69979fb8b15ab5afaa654b317edc254253b4b
Reviewed-on: http://gerrit.openafs.org/6230
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
AFS_GUNLOCK();
for(cix = 0; cix < CVEC_LEN; ++cix) {
tc = &(tcv->cvec[cix]);
- if (tc->activated)
+ if (tc->activated) {
+ rx_SetConnSecondsUntilNatPing(tc->id, 0);
rx_DestroyConnection(tc->id);
+ }
}
if (glocked)
AFS_GLOCK();
AFS_GUNLOCK(); \
for(cix = 0; cix < CVEC_LEN; ++cix) {
tc = &(tcv->cvec[cix]);
- if (tc->activated)
- rx_DestroyConnection( tc->id );
+ if (tc->activated) {
+ rx_SetConnSecondsUntilNatPing(tc->id, 0);
+ rx_DestroyConnection(tc->id);
+ }
}
if (glocked)
AFS_GLOCK();
if (tc->id) {
if (glocked)
AFS_GUNLOCK();
- rx_DestroyConnection(tc->id);
+ rx_SetConnSecondsUntilNatPing(tc->id, 0);
+ rx_DestroyConnection(tc->id);
if (glocked)
AFS_GLOCK();
}