Kieran Mansley wrote:
You can probably get away with leaving TCP_WND alone
if you're acting purely as a sender of packets,
In fact, I think you won't, as TCP_WND is not only the announced receive
window size but serves as a limit for transmit window, too.
I thought that sounded familiar and had a look for it in the source
before posting, but couldn't find where this happened. Can you remind
me?
I've had another look and still can't find this. The only bit that
might be what you're referring to is in tcp_connect():
pcb->snd_wnd = TCP_WND;
However, pcb->snd_wnd will be overwritten with the real window size when
we get the SYN-ACK back from the other end.