/lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-December/024409.html

https://github.com/whatwg/whatwg.org · HTML · 96 lines · 73 code · 16 blank · 7 comment · 0 complexity · 01425e788857e5c6c82a6d9efdab6883 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] Thread to run Web Socket feedback from the protocol ?
  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%20Thread%20to%20run%20Web%20Socket%20feedback%20from%20the%20protocol%20%3F&In-Reply-To=%3CPine.LNX.4.62.0912091839570.16061%40hixie.dreamhostps.com%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="024408.html">
  11. <LINK REL="Next" HREF="024410.html">
  12. </HEAD>
  13. <BODY BGCOLOR="#ffffff">
  14. <H1>[whatwg] Thread to run Web Socket feedback from the protocol ?</H1>
  15. <!--htdig_noindex-->
  16. <B>Ian Hickson</B>
  17. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Thread%20to%20run%20Web%20Socket%20feedback%20from%20the%20protocol%20%3F&In-Reply-To=%3CPine.LNX.4.62.0912091839570.16061%40hixie.dreamhostps.com%3E"
  18. TITLE="[whatwg] Thread to run Web Socket feedback from the protocol ?">ian at hixie.ch
  19. </A><BR>
  20. <I>Wed Dec 9 10:40:41 PST 2009</I>
  21. <P><UL>
  22. <LI>Previous message: <A HREF="024408.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
  23. </A></li>
  24. <LI>Next message: <A HREF="024410.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
  25. </A></li>
  26. <LI> <B>Messages sorted by:</B>
  27. <a href="date.html#24409">[ date ]</a>
  28. <a href="thread.html#24409">[ thread ]</a>
  29. <a href="subject.html#24409">[ subject ]</a>
  30. <a href="author.html#24409">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--/htdig_noindex-->
  35. <!--beginarticle-->
  36. <PRE>On Wed, 9 Dec 2009, Alexey Proskuryakov wrote:
  37. &gt;<i> On 09.12.2009, at 10:07, Ian Hickson wrote:
  38. </I>&gt;<i> &gt; &gt; &gt;
  39. </I>&gt;<i> &gt; &gt; &gt; I'm absolutely fine with changing WebSocket to change readyState
  40. </I>&gt;<i> &gt; &gt; &gt; as part of the same task that dispatches the event
  41. </I>&gt;<i> &gt; &gt;
  42. </I>&gt;<i> &gt; &gt; Yes, that is what I think the spec should say.
  43. </I>&gt;<i> &gt;
  44. </I>&gt;<i> &gt; Done.
  45. </I>&gt;<i>
  46. </I>&gt;<i> With the updated text, there is a race condition between closing a
  47. </I>&gt;<i> socket and removing all data that was received. The spec says &quot;When a
  48. </I>&gt;<i> user agent is to close the Web Socket connection, it must drop all
  49. </I>&gt;<i> subsequent data from the server&quot; - but with the current spec text, you
  50. </I>&gt;<i> can get message events after you call close() from onopen handler.
  51. </I>
  52. Fixed. This also makes readyState change to CLOSED as soon as you call
  53. close() (the 'close' event is still queued, though, it doesn't fire
  54. synchronously during the close() call).
  55. --
  56. Ian Hickson U+1047E )\._.,--....,'``. fL
  57. <A HREF="http://ln.hixie.ch/">http://ln.hixie.ch/</A> U+263A /, _.. \ _\ ;`._ ,.
  58. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
  59. </PRE>
  60. <!--endarticle-->
  61. <!--htdig_noindex-->
  62. <HR>
  63. <P><UL>
  64. <!--threads-->
  65. <LI>Previous message: <A HREF="024408.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
  66. </A></li>
  67. <LI>Next message: <A HREF="024410.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
  68. </A></li>
  69. <LI> <B>Messages sorted by:</B>
  70. <a href="date.html#24409">[ date ]</a>
  71. <a href="thread.html#24409">[ thread ]</a>
  72. <a href="subject.html#24409">[ subject ]</a>
  73. <a href="author.html#24409">[ author ]</a>
  74. </LI>
  75. </UL>
  76. <hr>
  77. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  78. mailing list</a><br>
  79. <!--/htdig_noindex-->
  80. </body></html>