Date: Sat, 26 Sep 2009 20:07:48 +0000 (UTC) From: Stanislav Sedov <stas@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r197529 - in stable/7/sys: . contrib/pf netinet Message-ID: <200909262007.n8QK7nDa069706@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: stas Date: Sat Sep 26 20:07:48 2009 New Revision: 197529 URL: http://svn.freebsd.org/changeset/base/197529 Log: - MFC r196410 by peter@: Fix signed comparison bug when ticks goes negative after 24 days of uptime. This causes the tcp time_wait state code to fail to expire sockets in timewait state. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/netinet/tcp_timewait.c Modified: stable/7/sys/netinet/tcp_timewait.c ============================================================================== --- stable/7/sys/netinet/tcp_timewait.c Sat Sep 26 19:00:47 2009 (r197528) +++ stable/7/sys/netinet/tcp_timewait.c Sat Sep 26 20:07:48 2009 (r197529) @@ -587,7 +587,7 @@ tcp_tw_2msl_scan(int reuse) INP_INFO_WLOCK_ASSERT(&tcbinfo); for (;;) { tw = TAILQ_FIRST(&twq_2msl); - if (tw == NULL || (!reuse && tw->tw_time > ticks)) + if (tw == NULL || (!reuse && (tw->tw_time - ticks) > 0)) break; INP_WLOCK(tw->tw_inpcb); tcp_twclose(tw, reuse);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909262007.n8QK7nDa069706>