Sloppiness? I don't get that. The sender's job is to transmit the data as
fast as possible, not to respect the receiver's best guesstimate of
available bandwidth sent ½ RTT ago. In this case, the sender's job is to
keep the TCP buffer full of data so it can send it when it has the
opportunity to.
Respecting the peer's receive window in the single file send case is
harmless at best and detrimental otherwise.
Peter
On Sunday, November 3, 2013, William Chan (陈智昌) wrote:
> I don't feel comfortable encouraging such sloppiness, I worry about future
> interop. Respecting a peer's receive window isn't hard. Just do it :)
>
> And even though wget doesn't support upload (to my knowledge, but I'm not
> an expert), a command line tool may upload, in which case it should
> definitely respect the peer's receive window.
> On Nov 3, 2013 6:22 PM, "Yoav Nir" <ynir@checkpoint.com<javascript:_e({}, 'cvml', 'ynir@checkpoint.com');>>
> wrote:
>
>>
>> On Nov 3, 2013, at 1:25 PM, William Chan (陈智昌) <willchan@chromium.org<javascript:_e({}, 'cvml', 'willchan@chromium.org');>>
>> wrote:
>>
>> It's probably understood already, but just to be clear, this is
>> receiver controlled and directional. Unless you control both endpoints, you
>> must implement flow control in order to respect the peer's receive windows,
>> even if you disable your own receive windows. Cheers.
>>
>>
>> This discussion started with tools like WGET. If all you're ever sending
>> is one single request equivalent to "GET xxx", you're likely fine not
>> considering server receive window.
>>
>> For a single file, the data that the client sends to the server never
>> exceeds the default server receive window.
>>
>>
>>