google / netstack

IPv4 and IPv6 userland network stack
Apache License 2.0
3.09k stars 279 forks source link

The window scale question #34

Closed weiyixuan closed 4 years ago

weiyixuan commented 4 years ago

When the TCP sender (a Windows application) is notified that the receiver has 1054 bytes left in the receiving window, the sender stops sending data, and the receiver (using netstack) does not consider itself in a zero window. It is found that the Windows scale is 5. Is there an interface that can modify the Windows scale value? Or why doesn't the sender continue to send data?

weiyixuan commented 4 years ago

Is the algorithm for zeroReceiveWindow too simple?