/lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-April/068339.html

https://github.com/whatwg/whatwg.org · HTML · 76 lines · 64 code · 5 blank · 7 comment · 0 complexity · 3ffd72d7341762f813a911411cb39cab MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] WebSocket leading 0x80 bytes in length
  5. </TITLE>
  6. <LINK REL="Index" HREF="index.html" >
  7. <LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20leading%200x80%20bytes%20in%20length&In-Reply-To=%3Cop.vbu47ndridj3kv%40simon-pieterss-macbook.local%3E">
  8. <META NAME="robots" CONTENT="index,nofollow">
  9. <style type="text/css">
  10. pre {
  11. white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
  12. }
  13. </style>
  14. <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
  15. <LINK REL="Previous" HREF="068375.html">
  16. <LINK REL="Next" HREF="068353.html">
  17. </HEAD>
  18. <BODY BGCOLOR="#ffffff">
  19. <H1>[whatwg] WebSocket leading 0x80 bytes in length</H1>
  20. <!--htdig_noindex-->
  21. <B>Simon Pieters</B>
  22. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20leading%200x80%20bytes%20in%20length&In-Reply-To=%3Cop.vbu47ndridj3kv%40simon-pieterss-macbook.local%3E"
  23. TITLE="[whatwg] WebSocket leading 0x80 bytes in length">simonp at opera.com
  24. </A><BR>
  25. <I>Wed Apr 28 01:15:13 PDT 2010</I>
  26. <P><UL>
  27. <LI>Previous message: <A HREF="068375.html">[whatwg] Adding ECMAScript 5 array extras to HTMLCollection (ATTN IE TEAM - TRAVIS LEITHEAD)
  28. </A></li>
  29. <LI>Next message: <A HREF="068353.html">[whatwg] WebSocket leading 0x80 bytes in length
  30. </A></li>
  31. <LI> <B>Messages sorted by:</B>
  32. <a href="date.html#68339">[ date ]</a>
  33. <a href="thread.html#68339">[ thread ]</a>
  34. <a href="subject.html#68339">[ subject ]</a>
  35. <a href="author.html#68339">[ author ]</a>
  36. </LI>
  37. </UL>
  38. <HR>
  39. <!--/htdig_noindex-->
  40. <!--beginarticle-->
  41. <PRE>The WebSocket spec allows leading 0x80 bytes in the length of a binary
  42. frame. Such bytes do not change the value of the length. In order to not
  43. have to deal with ridiculous cases such as when there are 50k such bytes,
  44. we would want to fail the connection if the first byte in length is 0x80.
  45. Allowing it also complicates the check of the closing handshake (if we
  46. want 0xFF 0x80 0x00 to not count as a closing handshake).
  47. --
  48. Simon Pieters
  49. Opera Software
  50. </PRE>
  51. <!--endarticle-->
  52. <!--htdig_noindex-->
  53. <HR>
  54. <P><UL>
  55. <!--threads-->
  56. <LI>Previous message: <A HREF="068375.html">[whatwg] Adding ECMAScript 5 array extras to HTMLCollection (ATTN IE TEAM - TRAVIS LEITHEAD)
  57. </A></li>
  58. <LI>Next message: <A HREF="068353.html">[whatwg] WebSocket leading 0x80 bytes in length
  59. </A></li>
  60. <LI> <B>Messages sorted by:</B>
  61. <a href="date.html#68339">[ date ]</a>
  62. <a href="thread.html#68339">[ thread ]</a>
  63. <a href="subject.html#68339">[ subject ]</a>
  64. <a href="author.html#68339">[ author ]</a>
  65. </LI>
  66. </UL>
  67. <hr>
  68. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  69. mailing list</a><br>
  70. <!--/htdig_noindex-->
  71. </body></html>