summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1999-01-20 17:32:01 +0000
committerfenner <fenner@FreeBSD.org>1999-01-20 17:32:01 +0000
commit505f7489c786c6d9187a23cdcaff81d58054cfa2 (patch)
treeb11687e0b4226a6a70dd505540489c7122139567 /sys/kern/uipc_socket.c
parent801f1c1fa1926446d11f8e3767651f802a16222b (diff)
downloadFreeBSD-src-505f7489c786c6d9187a23cdcaff81d58054cfa2.zip
FreeBSD-src-505f7489c786c6d9187a23cdcaff81d58054cfa2.tar.gz
Add a flag, passed to pru_send routines, PRUS_MORETOCOME. This
flag means that there is more data to be put into the socket buffer. Use it in TCP to reduce the interaction between mbuf sizes and the Nagle algorithm. Based on: "Justin C. Walker" <justin@apple.com>'s description of Apple's fix for this problem.
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 5ce603b..6b1cb0a 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)uipc_socket.c 8.3 (Berkeley) 4/15/94
- * $Id: uipc_socket.c,v 1.48 1999/01/08 17:31:13 eivind Exp $
+ * $Id: uipc_socket.c,v 1.49 1999/01/10 01:58:25 eivind Exp $
*/
#include <sys/param.h>
@@ -529,7 +529,9 @@ nopages:
((flags & MSG_EOF) &&
(so->so_proto->pr_flags & PR_IMPLOPCL) &&
(resid <= 0)) ?
- PRUS_EOF : 0,
+ PRUS_EOF :
+ /* If there is more to send set PRUS_MORETOCOME */
+ (resid > 0) ? PRUS_MORETOCOME : 0,
top, addr, control, p);
splx(s);
if (dontroute)
OpenPOWER on IntegriCloud