diff options
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 797a496..829fcea 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.2 1994/08/02 07:49:03 davidg Exp $ + * $Id: tcp_output.c,v 1.3 1994/09/15 10:36:55 davidg Exp $ */ #include <sys/param.h> @@ -322,6 +322,11 @@ send: * bump the packet length beyond the t_maxseg length. */ if (len > tp->t_maxseg - optlen) { + /* + * If there is still more to send, don't close the connection. + */ + flags &= ~TH_FIN; + len = tp->t_maxseg - optlen; sendalot = 1; } |