[html5] r1847 - [] (0) Oops, I'm just bad at maths. Also, define how UAs must fail in the face o [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jul 3 13:51:49 PDT 2008
Author: ianh
Date: 2008-07-03 13:51:44 -0700 (Thu, 03 Jul 2008)
New Revision: 1847
Modified:
index
source
Log:
[] (0) Oops, I'm just bad at maths. Also, define how UAs must fail in the face of large data. (credit: pt)
Modified: index
===================================================================
--- index 2008-07-03 19:49:46 UTC (rev 1846)
+++ index 2008-07-03 20:51:44 UTC (rev 1847)
@@ -41854,9 +41854,6 @@
<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.
@@ -41867,16 +41864,11 @@
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>.
+ <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>Multiply <var title="">multiple</var> by 128, and store that new
- value in <var title="">multiple</var>.
-
- <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 returns 0x80),
then return to the step above labeled <a
@@ -41927,6 +41919,10 @@
<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>,
Modified: source
===================================================================
--- source 2008-07-03 19:49:46 UTC (rev 1846)
+++ source 2008-07-03 20:51:44 UTC (rev 1847)
@@ -39503,8 +39503,6 @@
<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>
@@ -39513,14 +39511,10 @@
(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="">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>Multiply <var title="">multiple</var> by 128, and store
- that new value in <var title="">multiple</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
returns 0x80), then return to the step above labeled <a
@@ -39576,6 +39570,10 @@
</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
More information about the Commit-Watchers
mailing list