Rajdip Patel
Rajdip Patel

Reputation: 551

TcpWindowSize vs Socket Buffer Size on Windows

What is difference between TcpWindowSize and Socket Buffer Sizes ?

I assume TcpWindowSize can be changed only using Registry Settings and Socket Buffer Sizes can be changed using SO_SNDBUF and SO_RCVBUF socket parameters?

Upvotes: 4

Views: 1960

Answers (1)

user207421
user207421

Reputation: 310915

  1. The TcpWindowSize Registry setting controls the maximum advertised window of the interface as described in the MSDN link. Being a Registry setting, you change it in the Registry.

  2. SO_RCVBUF controls the size of the socket receive buffer. This is the maximum advertised TCP window of the connection, and it is evidently subject to overriding by (1).

  3. SO_SNDBUF controls the size of the socket send buffer. It doesn't have anything directly to do with windowing.

Upvotes: 5

Related Questions