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

https://github.com/whatwg/whatwg.org · HTML · 113 lines · 84 code · 22 blank · 7 comment · 0 complexity · bba53a21b96b853c8da365847fe43770 MD5 · raw file

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