]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 198990:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 17 Nov 2009 16:17:11 +0000 (16:17 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 17 Nov 2009 16:17:11 +0000 (16:17 +0000)
commitd21c0a44dfa3320daf83f7814fc8893eff1ac45a
treeaba66d8115dfef9f82b2046ae714d8a85484f1ab
parent5ffa2145749907b17870e7ac050ffbfc5cb7752c
MFC 198990:
Several years ago a feature was added to TCP that casued soreceive() to
send an ACK right away if data was drained from a TCP socket that had
previously advertised a zero-sized window.  The current code requires the
receive window to be exactly zero for this to kick in.  If window scaling is
enabled and the window is smaller than the scale, then the effective window
that is advertised is zero.  However, in that case the zero-sized window
handling is not enabled because the window is not exactly zero.  The fix
changes the code to check the raw window value against zero.

git-svn-id: svn://svn.freebsd.org/base/stable/8@199400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/tcp_output.c