W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] WebSocket bufferedAmount includes overhead or not.

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Tue, 23 Mar 2010 11:38:27 +0200
Message-ID: <4BA88C13.4010908@helsinki.fi>
On 3/18/10 2:15 AM, Alexey Proskuryakov wrote:
>
> On 05.03.2010, at 15:32, Alexey Proskuryakov wrote:
>
>>>> for something no one should care about, as you
>>>> implied above.
>>> From API perspective I do care. Web developers shouldn't need to know
>>> about the protocol, yet (s)he should be able to understand what
>>> bufferedAmount means.
>>
>> An explanation like "it's how much data is buffered to be sent over
>> network" seems adequate to me.
>
>
> We have a suggested patch that implements the proposed new behavior for
> WebKit now, but I think that it adds unnecessary complexity, and puts
> limits on how we can refactor the code in the future. We need to
> remember frame boundaries for much longer, making it difficult to
> interface with general purpose networking code.
>
> I'd prefer sticking to the previously specified behavior.
>
> - WBR, Alexey Proskuryakov
>
>

And I certainly prefer the current behavior, where the API is not
so tightly bound to the protocol, and where the bufferedAmount is
handled more close to what progress events do with XMLHttpRequest.

-Olli
Received on Tuesday, 23 March 2010 02:38:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC