Skip to content

Commit

Permalink
[] (0) Oops, I'm just bad at maths. Also, define how UAs must fail in…
Browse files Browse the repository at this point in the history
… the face of large data. (credit: pt)

git-svn-id: http://svn.whatwg.org/webapps@1847 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 3, 2008
1 parent f91ac9a commit dd0480f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
18 changes: 7 additions & 11 deletions index
Expand Up @@ -41854,9 +41854,6 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
<li>
<p>Let <var title="">length</var> be zero.

<li>
<p>Let <var title="">multiple</var> be 1.

<li id=ws-cd-length>
<p><em>Length</em>: Read a byte, let <var title="">b</var> be that
byte.
Expand All @@ -41867,14 +41864,9 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
you would get by <i>and</i>ing <var title="">b</var> with 0x7f).

<li>
<p>Multiply <var title="">length</var> by <var
title="">multiple</var>, add <var title="">b<sub
title="">v</sub></var> to that result, and store the final result in
<var title="">length</var>.

<li>
<p>Multiply <var title="">multiple</var> by 128, and store that new
value in <var title="">multiple</var>.
<p>Multiply <var title="">length</var> by 128, add <var
title="">b<sub title="">v</sub></var> to that result, and store the
final result in <var title="">length</var>.

<li>
<p>If the high-order bit of <var title="">b</var> is set (i.e. if
Expand Down Expand Up @@ -41927,6 +41919,10 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
<p>Return to the first step to read the next byte.
</ol>

<p>If the user agent is faced with content that is too large to be handled
appropriately, then it must <a href="#fail-the">fail the Web Socket
connection</a>.

<hr>

<p>Once a <a href="#web-socket">Web Socket connection is established</a>,
Expand Down
16 changes: 7 additions & 9 deletions source
Expand Up @@ -39503,8 +39503,6 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>

<li><p>Let <var title="">length</var> be zero.</p></li>

<li><p>Let <var title="">multiple</var> be 1.</p></li>

<li id="ws-cd-length"><p><em>Length</em>: Read a byte, let <var
title="">b</var> be that byte.</p></li>

Expand All @@ -39513,13 +39511,9 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
(the value you would get by <i>and</i>ing <var title="">b</var>
with 0x7f).</p></li>

<li><p>Multiply <var title="">length</var> by <var
title="">multiple</var>, add <var title="">b<sub
title="">v</sub></var> to that result, and store the final
result in <var title="">length</var>.</p></li>

<li><p>Multiply <var title="">multiple</var> by 128, and store
that new value in <var title="">multiple</var>.</p></li>
<li><p>Multiply <var title="">length</var> by 128, add <var
title="">b<sub title="">v</sub></var> to that result, and store
the final result in <var title="">length</var>.</p></li>

<li><p>If the high-order bit of <var title="">b</var> is set
(i.e. if <var title="">b</var> <i title="">and</i>ed with 0x80
Expand Down Expand Up @@ -39576,6 +39570,10 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>

</ol>

<p>If the user agent is faced with content that is too large to be
handled appropriately, then it must <span>fail the Web Socket
connection</span>.</p>

<hr>

<p>Once a <span>Web Socket connection is established</span>, the
Expand Down

0 comments on commit dd0480f

Please sign in to comment.