]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afs: prevent nat pings on destroyed connections
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 5 Dec 2011 04:15:13 +0000 (23:15 -0500)
committerDerrick Brashear <shadow@dementix.org>
Tue, 13 Dec 2011 21:25:26 +0000 (13:25 -0800)
If the connection is no longer in use, reset the nat keep alive
timer to 0 seconds.

Reviewed-on: http://gerrit.openafs.org/6230
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 7a93c827f353e2ad695d8019ab789b02a3596f2e)

Change-Id: I019bdce7a8f9f0123786b46d0563f42f7b26c14b
Reviewed-on: http://gerrit.openafs.org/6232
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/afs/afs_conn.c

index d9173dbb284d9416b820aa3ff156391f2b55050f..e4cba32dcac1c2bfe81c0adac70ca4b31ed8ff77 100644 (file)
@@ -276,6 +276,7 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
        csec = (struct rx_securityClass *)0;
        if (tc->id) {
            AFS_GUNLOCK();
+           rx_SetConnSecondsUntilNatPing(tc->id, 0);
            rx_DestroyConnection(tc->id);
            AFS_GLOCK();
        }