Re: Proposal for API for Data

On 4/10/2012 5:19 PM, Timothy B. Terriberry wrote:
> Randell Jesup wrote:
>>> I don't think this is true. It's certainly not implemented this way in
>>> gecko (see
>>> http://mxr.mozilla.org/mozilla-central/source/netwerk/protocol/websocket/WebSocketChannel.cpp#2707 
>>>
>>>
>>> through 2744). Nothing in the WebSocket protocol acknowledges message
>> In content/base/src/nsWebSocket.cpp, lines 1232 (return amount), 1322
>> (amount += len), and line 370 (amount -= acked size).
>
> The link I gave above is to the code that dispatches the call to the 
> OnAcknowledge function you quote... and it isn't using any protocol 
> ACKs, despite the function name.

Quite so, sorry.  So the buffered amount is the amount that hasn't been 
accepted into the OS buffers yet; a kindof indirect measure of the 
amount not acked yet.  Darn names tripping me up.  :-)

-- 
Randell Jesup
randell-ietf@jesup.org

Received on Tuesday, 10 April 2012 22:12:24 UTC