Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 15:55:41 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        EXT-Ralph.Henderson@nokia.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Adjusting TCP Receive Window Size
Message-ID:  <20010404155541.A6469@dan.emsphone.com>
In-Reply-To: <8572CF1E2A95D211A1190008C7EAA24605174947@daeis05nok>; from "EXT-Ralph.Henderson@nokia.com" on Wed Apr  4 14:46:52 GMT 2001
References:  <8572CF1E2A95D211A1190008C7EAA24605174947@daeis05nok>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 04), EXT-Ralph.Henderson@nokia.com said:
> Does anyone have any insights on how to change the TCP Receive Window
> Size?????

In your program:

setsockopt() with SO_RCVBUF, and whatever buffer size you prefer.

To change the kernel's maximum (needed if you want to use 
setsockopt() to make the window bigger):

sysctl -w net.inet.tcp.recvspace=1048576

The default is 16384. 

-- 
	Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010404155541.A6469>