network - Restart the callout timer when setting TCP_FASTKEEP
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Sep 2010 16:58:09 +0000 (09:58 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Sep 2010 16:58:09 +0000 (09:58 -0700)
commit0ecd93f9afc1071c7e09f45eb52cc804b4bd52f8
treeffcdec465011ebd34990779a26ab901299fae204
parent4168529c7b12e971c4bde6395132fba9156f0c4b
network - Restart the callout timer when setting TCP_FASTKEEP

* When TCP_FASTKEEP is enabled we must reload the callout with the shorter
  timeout.  If we allow the longer timeout to expire and the connection
  remains idle the tcp connection will be dropped when the longer timeout
  expires since it will have exceeded the maximum calculation.

* Fixes noisy but otherwise benign NFS messages on the console.

* Abstract the tcp activity function into tcp_timer_keep_activity() so
  we can call it from both usrreq and tcp_input.
sys/netinet/tcp_input.c
sys/netinet/tcp_usrreq.c
sys/netinet/tcp_var.h