/lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-December/066683.html
https://github.com/whatwg/whatwg.org · HTML · 91 lines · 75 code · 9 blank · 7 comment · 0 complexity · 7b1a7d0168000612f788932dcf79d3e8 MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <HTML>
- <HEAD>
- <TITLE> [whatwg] Thread to run Web Socket feedback from the protocol ?
- </TITLE>
- <LINK REL="Index" HREF="index.html" >
- <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">
- <META NAME="robots" CONTENT="index,nofollow">
- <style type="text/css">
- pre {
- white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
- }
- </style>
- <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
- <LINK REL="Previous" HREF="066682.html">
- <LINK REL="Next" HREF="066685.html">
- </HEAD>
- <BODY BGCOLOR="#ffffff">
- <H1>[whatwg] Thread to run Web Socket feedback from the protocol ?</H1>
- <!--htdig_noindex-->
- <B>Alexey Proskuryakov</B>
- <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"
- TITLE="[whatwg] Thread to run Web Socket feedback from the protocol ?">ap at webkit.org
- </A><BR>
- <I>Wed Dec 9 10:44:56 PST 2009</I>
- <P><UL>
- <LI>Previous message: <A HREF="066682.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI>Next message: <A HREF="066685.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI> <B>Messages sorted by:</B>
- <a href="date.html#66683">[ date ]</a>
- <a href="thread.html#66683">[ thread ]</a>
- <a href="subject.html#66683">[ subject ]</a>
- <a href="author.html#66683">[ author ]</a>
- </LI>
- </UL>
- <HR>
- <!--/htdig_noindex-->
- <!--beginarticle-->
- <PRE>
- On 09.12.2009, at 10:07, Ian Hickson wrote:
- >>><i> I'm absolutely fine with changing WebSocket to change readyState as
- </I>>>><i> part of the same task that dispatches the event
- </I>>><i>
- </I>>><i> Yes, that is what I think the spec should say.
- </I>><i>
- </I>><i> Done.
- </I>
- As discussed on IRC, this leaves us with a race condition between
- close() and queued messages. The spec says that once close() is
- invoked, incoming data should be dropped, but queued tasks to dispatch
- message event will still be coming.
- This race condition can of course be fixed without much difficulty. It
- may be more difficult to similarly rearrange XHR specs.
- I find it unfortunate that where the spec says "queue a task", most
- (or all) implementations will perform those actions immediately. This
- may be indistinguishable from JavaScript client code, but it will be a
- source of confusion for developers.
- - WBR, Alexey Proskuryakov
- </PRE>
- <!--endarticle-->
- <!--htdig_noindex-->
- <HR>
- <P><UL>
- <!--threads-->
- <LI>Previous message: <A HREF="066682.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI>Next message: <A HREF="066685.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI> <B>Messages sorted by:</B>
- <a href="date.html#66683">[ date ]</a>
- <a href="thread.html#66683">[ thread ]</a>
- <a href="subject.html#66683">[ subject ]</a>
- <a href="author.html#66683">[ author ]</a>
- </LI>
- </UL>
- <hr>
- <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
- mailing list</a><br>
- <!--/htdig_noindex-->
- </body></html>