I want to know when I change the SND_BUF of a socket via setsockopt API, will the original window size of the TCP layer be changed accordingly?
Asked
Active
Viewed 1,676 times
1 Answers
3
It doesn't change since it is receive window size, whereas SO_SNDBUF
controls the size of the send buffer.

Maxim Egorushkin
- 131,725
- 17
- 180
- 271
-
Then is the SO_RCVBUF relevant? – ciphor Mar 08 '12 at 10:08
-
Yep, it needs to be set before calling `connect()` or `listen()` though. – Maxim Egorushkin Mar 08 '12 at 10:34
-
See this answer for an example of how relevant. http://stackoverflow.com/a/8579250/7925 – Len Holgate Mar 08 '12 at 13:29