mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
avoid nat ping for authenticated connections
this is a cheap way to ensure one nat ping per server. basically, only do it for the one unauth connection we have. Change-Id: I4583112d7b4a10a0e8f524795527d99a5b2adf51 Reviewed-on: http://gerrit.openafs.org/2010 Reviewed-by: Russ Allbery <rra@stanford.edu> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
9f9ffb7822
commit
deca334a5c
@ -295,6 +295,11 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
|
||||
}
|
||||
rx_SetConnIdleDeadTime(tc->id, afs_rx_idledead);
|
||||
|
||||
/*
|
||||
* Only do this for the base connection, not per-user.
|
||||
* Will need to be revisited if/when CB gets security.
|
||||
*/
|
||||
if (isec == 0)
|
||||
rx_SetConnSecondsUntilNatPing(tc->id, 20);
|
||||
|
||||
tc->forceConnectFS = 0; /* apparently we're appropriately connected now */
|
||||
|
Loading…
Reference in New Issue
Block a user