/lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-March/025735.html

https://github.com/whatwg/whatwg.org · HTML · 75 lines · 64 code · 4 blank · 7 comment · 0 complexity · e6ef9fe2dc17f38933f94717b241f986 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] WebSocket bufferedAmount includes overhead or not
  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%20bufferedAmount%20includes%20overhead%20or%20not&In-Reply-To=%3C4BB2D5F1.3060106%40mit.edu%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="025707.html">
  11. <LINK REL="Next" HREF="025736.html">
  12. </HEAD>
  13. <BODY BGCOLOR="#ffffff">
  14. <H1>[whatwg] WebSocket bufferedAmount includes overhead or not</H1>
  15. <!--htdig_noindex-->
  16. <B>Boris Zbarsky</B>
  17. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20bufferedAmount%20includes%20overhead%20or%20not&In-Reply-To=%3C4BB2D5F1.3060106%40mit.edu%3E"
  18. TITLE="[whatwg] WebSocket bufferedAmount includes overhead or not">bzbarsky at MIT.EDU
  19. </A><BR>
  20. <I>Tue Mar 30 21:56:17 PDT 2010</I>
  21. <P><UL>
  22. <LI>Previous message: <A HREF="025707.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  23. </A></li>
  24. <LI>Next message: <A HREF="025736.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  25. </A></li>
  26. <LI> <B>Messages sorted by:</B>
  27. <a href="date.html#25735">[ date ]</a>
  28. <a href="thread.html#25735">[ thread ]</a>
  29. <a href="subject.html#25735">[ subject ]</a>
  30. <a href="author.html#25735">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--/htdig_noindex-->
  35. <!--beginarticle-->
  36. <PRE>On 3/30/10 10:22 AM, Jonas Sicking wrote:
  37. &gt;<i> Making it implementation dependent is likely to lead to website
  38. </I>&gt;<i> incompatibilities. Such as:
  39. </I>&gt;<i>
  40. </I>&gt;<i> ws = new WebSocket(...);
  41. </I>&gt;<i> ws.onopen = function() {
  42. </I>&gt;<i> ws.send(someString);
  43. </I>&gt;<i> if (ws.bufferedAmount&gt; X) {
  44. </I>&gt;<i> doStuff();
  45. </I>
  46. Can bufferedAmount not change due to data actually hitting the network
  47. during the execution of this code? As in, will all the someString data
  48. be buffered immediately after that send() call?
  49. -Boris
  50. </PRE>
  51. <!--endarticle-->
  52. <!--htdig_noindex-->
  53. <HR>
  54. <P><UL>
  55. <!--threads-->
  56. <LI>Previous message: <A HREF="025707.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  57. </A></li>
  58. <LI>Next message: <A HREF="025736.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  59. </A></li>
  60. <LI> <B>Messages sorted by:</B>
  61. <a href="date.html#25735">[ date ]</a>
  62. <a href="thread.html#25735">[ thread ]</a>
  63. <a href="subject.html#25735">[ subject ]</a>
  64. <a href="author.html#25735">[ author ]</a>
  65. </LI>
  66. </UL>
  67. <hr>
  68. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  69. mailing list</a><br>
  70. <!--/htdig_noindex-->
  71. </body></html>