summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-01-24 08:03:22 +0000
committerdg <dg@FreeBSD.org>1995-01-24 08:03:22 +0000
commit14991e48cfcfe3e704ed7f070727d7e57e11f07f (patch)
tree4d7059296b6bf50ceb37658f7550cfb510dbbff4 /sys/netinet/tcp_output.c
parentaddc92971537252101fa9cb3d1e0415bb0f79466 (diff)
downloadFreeBSD-src-14991e48cfcfe3e704ed7f070727d7e57e11f07f.zip
FreeBSD-src-14991e48cfcfe3e704ed7f070727d7e57e11f07f.tar.gz
Extended the previous change to cover the non-options case, too.
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 829fcea..2035604 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_output.c 8.3 (Berkeley) 12/30/93
- * $Id: tcp_output.c,v 1.3 1994/09/15 10:36:55 davidg Exp $
+ * $Id: tcp_output.c,v 1.4 1995/01/23 17:58:27 davidg Exp $
*/
#include <sys/param.h>
@@ -157,6 +157,11 @@ again:
}
}
if (len > tp->t_maxseg) {
+ /*
+ * If there is still more to send, don't close the connection.
+ */
+ flags &= ~TH_FIN;
+
len = tp->t_maxseg;
sendalot = 1;
}
OpenPOWER on IntegriCloud