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

[whatwg] WebSocket bufferedAmount includes overhead or not

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 25 Mar 2010 16:55:32 +0100
Message-ID: <op.u94ruunw64w2qv@annevk-t60>
On Thu, 25 Mar 2010 16:35:19 +0100, Olli Pettay <Olli.Pettay at helsinki.fi>  
> On 3/25/10 4:25 PM, Niklas Beischer wrote:
>> Easy. The bufferedAmount is: "The amount of bytes waiting to be
>> transferred, including protocol overhead".
> That doesn't define exactly what the bufferedAmount means and what
> kinds of values are expected.
> What I'd expect the API to tell me is, for example, that if I call
> ws.send(foo), and nothing is yet sent over the network, what is the
> exact value of bufferedAmount.
> Again, I'd really wish to keep the API to work reasonable similar
> way as XHR+progress events where protocol overhead isn't reported.

Why? Progress events are completely different from this. This is about not  
saturating the network with too much data; it makes sense if the actual  
amount of data that is going to hit the network is known. (Yes, I changed  
my mind.)

Anne van Kesteren
Received on Thursday, 25 March 2010 08:55:32 UTC

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