summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1999-01-20 17:45:22 +0000
committerfenner <fenner@FreeBSD.org>1999-01-20 17:45:22 +0000
commit46541593cd4e664eee12431612d7275edf8ab97c (patch)
tree51d22260b69648311415b9a9306cd0384cbbe47e /sys/kern/uipc_socket.c
parent505f7489c786c6d9187a23cdcaff81d58054cfa2 (diff)
downloadFreeBSD-src-46541593cd4e664eee12431612d7275edf8ab97c.zip
FreeBSD-src-46541593cd4e664eee12431612d7275edf8ab97c.tar.gz
Also consider the space left in the socket buffer when deciding whether
to set PRUS_MORETOCOME.
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 6b1cb0a..1efa8c5 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.49 1999/01/10 01:58:25 eivind Exp $
+ * $Id: uipc_socket.c,v 1.50 1999/01/20 17:31:54 fenner Exp $
*/
#include <sys/param.h>
@@ -531,7 +531,7 @@ nopages:
(resid <= 0)) ?
PRUS_EOF :
/* If there is more to send set PRUS_MORETOCOME */
- (resid > 0) ? PRUS_MORETOCOME : 0,
+ (resid > 0 && space > 0) ? PRUS_MORETOCOME : 0,
top, addr, control, p);
splx(s);
if (dontroute)
OpenPOWER on IntegriCloud