turning off TCP_NOPUSH
From: Igor Sysoev (is_at_rambler-co.ru)
Date: 05/28/03
- Previous message: Barney Wolff: "Re: Cascading qmail servers"
- Next in thread: Garrett Wollman: "turning off TCP_NOPUSH"
- Reply: Garrett Wollman: "turning off TCP_NOPUSH"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 28 May 2003 17:05:59 +0400 (MSD) To: freebsd-net@freebsd.org
The 1.53 fix
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/tcp_usrreq.c.diff?r1=1.52&r2=1.53
always calls tcp_output() when TCP_NOPUSH is turned off. I think
tcp_output() should be called only if data in the send buffer is less
than MSS:
tp->t_flags &= ~TF_NOPUSH;
- error = tcp_output(tp);
+ if (so->so_snd.sb_cc < tp->t_maxseg) {
+ error = tcp_output(tp);
+ }
If the pending data is bigger than MSS then it will be sent without
significant delay.
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Barney Wolff: "Re: Cascading qmail servers"
- Next in thread: Garrett Wollman: "turning off TCP_NOPUSH"
- Reply: Garrett Wollman: "turning off TCP_NOPUSH"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|