changes for UNIX ipc domain and for PUSH set when possible
authorBill Joy <root@ucbvax.Berkeley.EDU>
Mon, 2 Aug 1982 15:07:04 +0000 (07:07 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Mon, 2 Aug 1982 15:07:04 +0000 (07:07 -0800)
SCCS-vsn: sys/netinet/tcp_output.c 4.43

usr/src/sys/netinet/tcp_output.c

index 2b855d0..64c3f2b 100644 (file)
@@ -1,4 +1,4 @@
-/*     tcp_output.c    4.42    82/06/20        */
+/*     tcp_output.c    4.43    82/08/02        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -274,7 +274,14 @@ noopt:
                 * number wraparound.
                 */
                tp->snd_up = tp->snd_una;               /* drag it along */
                 * number wraparound.
                 */
                tp->snd_up = tp->snd_una;               /* drag it along */
-       /* PUSH */
+       /*
+        * If anything to send and we can send it all, set PUSH.
+        * (This will keep happy those implementations which only
+        * give data to the user when a buffer fills or a PUSH comes in.
+        */
+/*     if (len && (ti->ti_flags & (TH_FIN|TH_RST|TH_SYN)) == 0) */
+       if (len && off+len == so->so_snd.sb_cc)
+               ti->ti_flags |= TH_PUSH;
 
        /*
         * Put TCP length in extended header, and then
 
        /*
         * Put TCP length in extended header, and then