diff options
author | kcpoon <none@none> | 2006-01-03 19:58:41 -0800 |
---|---|---|
committer | kcpoon <none@none> | 2006-01-03 19:58:41 -0800 |
commit | adccf2f268a15d5b03cd4d65d7ad9d2392ded017 (patch) | |
tree | 1e8fef9db583f89c4f1416fcf7b3ee9053704083 /usr/src/uts/common/inet/tcp/tcp.c | |
parent | 6b90ca488b504d3422b169269c3a86ccad80322c (diff) | |
download | illumos-joyent-adccf2f268a15d5b03cd4d65d7ad9d2392ded017.tar.gz |
6367677 TCP needs to inherit the tcp_init_cwnd from listener
Diffstat (limited to 'usr/src/uts/common/inet/tcp/tcp.c')
-rw-r--r-- | usr/src/uts/common/inet/tcp/tcp.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/usr/src/uts/common/inet/tcp/tcp.c b/usr/src/uts/common/inet/tcp/tcp.c index 886f6a00e5..15dccca9b0 100644 --- a/usr/src/uts/common/inet/tcp/tcp.c +++ b/usr/src/uts/common/inet/tcp/tcp.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,16 @@ * * CDDL HEADER END */ + /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1990 Mentat Inc. */ #pragma ident "%Z%%M% %I% %E% SMI" -const char tcp_version[] = "@(#)tcp.c 1.490 05/11/29 SMI"; +const char tcp_version[] = "%Z%%M% %I% %E% SMI"; #include <sys/types.h> #include <sys/stream.h> @@ -5359,6 +5359,13 @@ tcp_conn_request(void *arg, mblk_t *mp, void *arg2) eager->tcp_rwnd = 0; /* + * Inherit listener's tcp_init_cwnd. Need to do this before + * calling tcp_process_options() where tcp_mss_set() is called + * to set the initial cwnd. + */ + eager->tcp_init_cwnd = tcp->tcp_init_cwnd; + + /* * Zones: tcp_adapt_ire() and tcp_send_data() both need the * zone id before the accept is completed in tcp_wput_accept(). */ |