git: network - Restart the callout timer when setting TCP_FASTKE

看板DFBSD_commit作者時間15年前 (2010/09/25 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 0ecd93f9afc1071c7e09f45eb52cc804b4bd52f8 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Fri Sep 24 09:58:09 2010 -0700 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. Summary of changes: sys/netinet/tcp_input.c | 55 ++++++++++++++++++++++++++++----------------- sys/netinet/tcp_usrreq.c | 10 ++++++-- sys/netinet/tcp_var.h | 1 + 3 files changed, 42 insertions(+), 24 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0ecd93f9afc1071c7e09f45eb52cc804b4bd52f8 -- DragonFly BSD source repository
文章代碼(AID): #1CdETj8R (DFBSD_commit)