/lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-April/068044.html

https://github.com/whatwg/whatwg.org · HTML · 84 lines · 69 code · 8 blank · 7 comment · 0 complexity · 7acff47a6ba35a3f48dc06744ec319ca MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//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=%3C4BB5613D.2060603%40mit.edu%3E">
  8. <META NAME="robots" CONTENT="index,nofollow">
  9. <style type="text/css">
  10. pre {
  11. white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
  12. }
  13. </style>
  14. <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
  15. <LINK REL="Previous" HREF="068032.html">
  16. <LINK REL="Next" HREF="068060.html">
  17. </HEAD>
  18. <BODY BGCOLOR="#ffffff">
  19. <H1>[whatwg] WebSocket bufferedAmount includes overhead or not</H1>
  20. <!--htdig_noindex-->
  21. <B>Boris Zbarsky</B>
  22. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20bufferedAmount%20includes%20overhead%20or%20not&In-Reply-To=%3C4BB5613D.2060603%40mit.edu%3E"
  23. TITLE="[whatwg] WebSocket bufferedAmount includes overhead or not">bzbarsky at MIT.EDU
  24. </A><BR>
  25. <I>Thu Apr 1 20:15:09 PDT 2010</I>
  26. <P><UL>
  27. <LI>Previous message: <A HREF="068032.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  28. </A></li>
  29. <LI>Next message: <A HREF="068060.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  30. </A></li>
  31. <LI> <B>Messages sorted by:</B>
  32. <a href="date.html#68044">[ date ]</a>
  33. <a href="thread.html#68044">[ thread ]</a>
  34. <a href="subject.html#68044">[ subject ]</a>
  35. <a href="author.html#68044">[ author ]</a>
  36. </LI>
  37. </UL>
  38. <HR>
  39. <!--/htdig_noindex-->
  40. <!--beginarticle-->
  41. <PRE>On 3/31/10 6:57 PM, Jonas Sicking wrote:
  42. &gt;<i> I would expect that send() is allowed to start streaming data over the
  43. </I>&gt;<i> network as soon as it can, but only update bufferedAmount from the
  44. </I>&gt;<i> event loop.
  45. </I>
  46. Maybe I'm not being clear. Let's say bufferedAmount were to reflect the
  47. number of UTF-8-encoded bytes to be sent, for the sake of argument.
  48. I wait until bufferedAmount is 0, then call send(&quot;My text&quot;).
  49. What are possible values of bufferedAmount if I examine it right after
  50. the send() call? Is 0 a valid possible value? What about 1? 2? 3? 4?
  51. 5? 6? 7?
  52. Presumably the value will be somewhere in the integer range [0,7],
  53. right? Or will it always be 7 after that call in that situation?
  54. -Boris
  55. </PRE>
  56. <!--endarticle-->
  57. <!--htdig_noindex-->
  58. <HR>
  59. <P><UL>
  60. <!--threads-->
  61. <LI>Previous message: <A HREF="068032.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  62. </A></li>
  63. <LI>Next message: <A HREF="068060.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  64. </A></li>
  65. <LI> <B>Messages sorted by:</B>
  66. <a href="date.html#68044">[ date ]</a>
  67. <a href="thread.html#68044">[ thread ]</a>
  68. <a href="subject.html#68044">[ subject ]</a>
  69. <a href="author.html#68044">[ author ]</a>
  70. </LI>
  71. </UL>
  72. <hr>
  73. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  74. mailing list</a><br>
  75. <!--/htdig_noindex-->
  76. </body></html>