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

https://github.com/whatwg/whatwg.org · HTML · 113 lines · 89 code · 17 blank · 7 comment · 0 complexity · aafc3d8e6231753e4d08032e4c1630df MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] WebSocket closing handshake
  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%20closing%20handshake&In-Reply-To=%3Cop.vby5a7vlidj3kv%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="068378.html">
  16. <LINK REL="Next" HREF="068383.html">
  17. </HEAD>
  18. <BODY BGCOLOR="#ffffff">
  19. <H1>[whatwg] WebSocket closing handshake</H1>
  20. <!--htdig_noindex-->
  21. <B>Simon Pieters</B>
  22. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20closing%20handshake&In-Reply-To=%3Cop.vby5a7vlidj3kv%40simon-pieterss-macbook.local%3E"
  23. TITLE="[whatwg] WebSocket closing handshake">simonp at opera.com
  24. </A><BR>
  25. <I>Fri Apr 30 05:07:45 PDT 2010</I>
  26. <P><UL>
  27. <LI>Previous message: <A HREF="068378.html">[whatwg] Should default styles for h1-h6 match the outlining algorithm?
  28. </A></li>
  29. <LI>Next message: <A HREF="068383.html">[whatwg] The real issue with HTML5's sectioning model (was: &quot;Headings and sections, role of H2-H6&quot; and &quot;Should default styles for h1-h6 match the outlining algorithm?&quot;)
  30. </A></li>
  31. <LI> <B>Messages sorted by:</B>
  32. <a href="date.html#68380">[ date ]</a>
  33. <a href="thread.html#68380">[ thread ]</a>
  34. <a href="subject.html#68380">[ subject ]</a>
  35. <a href="author.html#68380">[ author ]</a>
  36. </LI>
  37. </UL>
  38. <HR>
  39. <!--/htdig_noindex-->
  40. <!--beginarticle-->
  41. <PRE>start the WebSocket closing handshake:
  42. [[
  43. Note: The closing handshake finishes once the server returns the 0xFF
  44. packet, as described above.
  45. ]]
  46. I assume it should say 0xFF frame, not packet.
  47. This note is only true when the client sends the closing handshake first.
  48. ...except that I can't find anywhere in the server part to send 0xFF 0x00
  49. when it receives 0xFF 0x00 from the client. I just see:
  50. [[
  51. 5. If type is 0xFF and length is 0, then set the client terminated flag
  52. and abort these steps. All further data sent by the client should be
  53. discarded.
  54. ]]
  55. and:
  56. [[
  57. At any time, the server may decide to terminate the WebSocket connection
  58. by running through the following steps:
  59. Send a 0xFF byte and a 0x00 byte to the client to indicate the start of
  60. the closing handshake.
  61. Wait until the client terminated flag has been set, or until a
  62. server-defined timeout expires.
  63. Close the WebSocket connection.
  64. ]]
  65. I'm confused at this point how the closing handshake is supposed to work.
  66. [[
  67. Once these steps have started, the server must not send any further data
  68. to the server. The 0xFF 0x00 bytes indicate the end of the server's data,
  69. and further bytes will be discarded by the client.
  70. ]]
  71. s/to the server/to the client/
  72. --
  73. Simon Pieters
  74. Opera Software
  75. </PRE>
  76. <!--endarticle-->
  77. <!--htdig_noindex-->
  78. <HR>
  79. <P><UL>
  80. <!--threads-->
  81. <LI>Previous message: <A HREF="068378.html">[whatwg] Should default styles for h1-h6 match the outlining algorithm?
  82. </A></li>
  83. <LI>Next message: <A HREF="068383.html">[whatwg] The real issue with HTML5's sectioning model (was: &quot;Headings and sections, role of H2-H6&quot; and &quot;Should default styles for h1-h6 match the outlining algorithm?&quot;)
  84. </A></li>
  85. <LI> <B>Messages sorted by:</B>
  86. <a href="date.html#68380">[ date ]</a>
  87. <a href="thread.html#68380">[ thread ]</a>
  88. <a href="subject.html#68380">[ subject ]</a>
  89. <a href="author.html#68380">[ author ]</a>
  90. </LI>
  91. </UL>
  92. <hr>
  93. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  94. mailing list</a><br>
  95. <!--/htdig_noindex-->
  96. </body></html>