windows-afsd-nat-handling-20070310
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 10 Mar 2007 15:48:01 +0000 (15:48 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 10 Mar 2007 15:48:01 +0000 (15:48 +0000)
commitf1862d783a610d85a258aaee1d00aff26f348223
tree8821203c42486f30e230141690aa3cdc1b092e49
parentce776b4809146733f278e18cbdae1b4ed45c6b5d
windows-afsd-nat-handling-20070310

Improve cache manager performance behind NATs:

 * drop cm_daemonCheckUpInterval from 10 minutes to 4 minutes to bring
   it under the minimum recommended default port mapping idle timeout
   value for NATs

 * when a timeout on an rx connection occurs, retry the request once
   after forcing a new rx connection.  If there was a NAT and the port
   mapping changed, the server would respond to the original addr:port
   associated with the rx connection.  Forcing a new connection will
   allow the request to be responded to if the server is accessible.

   This should eliminate the UP-DOWN-UP-DOWN bouncing that user's have
   seen when working from behind a NAT.
src/WINNT/afsd/cm_conn.c
src/WINNT/afsd/cm_conn.h
src/WINNT/afsd/cm_daemon.c