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

https://github.com/whatwg/whatwg.org · HTML · 98 lines · 70 code · 21 blank · 7 comment · 0 complexity · 3cb9ef410fa9a65d2e4b1259a70ef213 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=%3CE4EC4CDC-F53D-4D53-B4DC-145750DF6611%40webkit.org%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="024409.html">
  11. <LINK REL="Next" HREF="024412.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>Alexey Proskuryakov</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=%3CE4EC4CDC-F53D-4D53-B4DC-145750DF6611%40webkit.org%3E"
  18. TITLE="[whatwg] Thread to run Web Socket feedback from the protocol ?">ap at webkit.org
  19. </A><BR>
  20. <I>Wed Dec 9 10:44:56 PST 2009</I>
  21. <P><UL>
  22. <LI>Previous message: <A HREF="024409.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
  23. </A></li>
  24. <LI>Next message: <A HREF="024412.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#24410">[ date ]</a>
  28. <a href="thread.html#24410">[ thread ]</a>
  29. <a href="subject.html#24410">[ subject ]</a>
  30. <a href="author.html#24410">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--/htdig_noindex-->
  35. <!--beginarticle-->
  36. <PRE>
  37. On 09.12.2009, at 10:07, Ian Hickson wrote:
  38. &gt;&gt;&gt;<i> I'm absolutely fine with changing WebSocket to change readyState as
  39. </I>&gt;&gt;&gt;<i> part of the same task that dispatches the event
  40. </I>&gt;&gt;<i>
  41. </I>&gt;&gt;<i> Yes, that is what I think the spec should say.
  42. </I>&gt;<i>
  43. </I>&gt;<i> Done.
  44. </I>
  45. As discussed on IRC, this leaves us with a race condition between
  46. close() and queued messages. The spec says that once close() is
  47. invoked, incoming data should be dropped, but queued tasks to dispatch
  48. message event will still be coming.
  49. This race condition can of course be fixed without much difficulty. It
  50. may be more difficult to similarly rearrange XHR specs.
  51. I find it unfortunate that where the spec says &quot;queue a task&quot;, most
  52. (or all) implementations will perform those actions immediately. This
  53. may be indistinguishable from JavaScript client code, but it will be a
  54. source of confusion for developers.
  55. - WBR, Alexey Proskuryakov
  56. </PRE>
  57. <!--endarticle-->
  58. <!--htdig_noindex-->
  59. <HR>
  60. <P><UL>
  61. <!--threads-->
  62. <LI>Previous message: <A HREF="024409.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
  63. </A></li>
  64. <LI>Next message: <A HREF="024412.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
  65. </A></li>
  66. <LI> <B>Messages sorted by:</B>
  67. <a href="date.html#24410">[ date ]</a>
  68. <a href="thread.html#24410">[ thread ]</a>
  69. <a href="subject.html#24410">[ subject ]</a>
  70. <a href="author.html#24410">[ author ]</a>
  71. </LI>
  72. </UL>
  73. <hr>
  74. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  75. mailing list</a><br>
  76. <!--/htdig_noindex-->
  77. </body></html>