/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
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//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=%3CPine.LNX.4.62.0912091839570.16061%40hixie.dreamhostps.com%3E">
- <META NAME="robots" CONTENT="index,nofollow">
- <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
- <LINK REL="Previous" HREF="024408.html">
- <LINK REL="Next" HREF="024410.html">
- </HEAD>
- <BODY BGCOLOR="#ffffff">
- <H1>[whatwg] Thread to run Web Socket feedback from the protocol ?</H1>
- <!--htdig_noindex-->
- <B>Ian Hickson</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=%3CPine.LNX.4.62.0912091839570.16061%40hixie.dreamhostps.com%3E"
- TITLE="[whatwg] Thread to run Web Socket feedback from the protocol ?">ian at hixie.ch
- </A><BR>
- <I>Wed Dec 9 10:40:41 PST 2009</I>
- <P><UL>
- <LI>Previous message: <A HREF="024408.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI>Next message: <A HREF="024410.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI> <B>Messages sorted by:</B>
- <a href="date.html#24409">[ date ]</a>
- <a href="thread.html#24409">[ thread ]</a>
- <a href="subject.html#24409">[ subject ]</a>
- <a href="author.html#24409">[ author ]</a>
- </LI>
- </UL>
- <HR>
- <!--/htdig_noindex-->
- <!--beginarticle-->
- <PRE>On Wed, 9 Dec 2009, Alexey Proskuryakov wrote:
- ><i> On 09.12.2009, at 10:07, Ian Hickson wrote:
- </I>><i> > > >
- </I>><i> > > > I'm absolutely fine with changing WebSocket to change readyState
- </I>><i> > > > as 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>><i>
- </I>><i> With the updated text, there is a race condition between closing a
- </I>><i> socket and removing all data that was received. The spec says "When a
- </I>><i> user agent is to close the Web Socket connection, it must drop all
- </I>><i> subsequent data from the server" - but with the current spec text, you
- </I>><i> can get message events after you call close() from onopen handler.
- </I>
- Fixed. This also makes readyState change to CLOSED as soon as you call
- close() (the 'close' event is still queued, though, it doesn't fire
- synchronously during the close() call).
- --
- Ian Hickson U+1047E )\._.,--....,'``. fL
- <A HREF="http://ln.hixie.ch/">http://ln.hixie.ch/</A> U+263A /, _.. \ _\ ;`._ ,.
- Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
- </PRE>
- <!--endarticle-->
- <!--htdig_noindex-->
- <HR>
- <P><UL>
- <!--threads-->
- <LI>Previous message: <A HREF="024408.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI>Next message: <A HREF="024410.html">[whatwg] Thread to run Web Socket feedback from the protocol ?
- </A></li>
- <LI> <B>Messages sorted by:</B>
- <a href="date.html#24409">[ date ]</a>
- <a href="thread.html#24409">[ thread ]</a>
- <a href="subject.html#24409">[ subject ]</a>
- <a href="author.html#24409">[ 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>