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

https://github.com/whatwg/whatwg.org · HTML · 95 lines · 80 code · 8 blank · 7 comment · 0 complexity · 6db29edc9b1ffdc6621a121675917970 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=%3Cop.u93851ur64w2qv%40annevk-t60%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="025615.html">
  11. <LINK REL="Next" HREF="025623.html">
  12. </HEAD>
  13. <BODY BGCOLOR="#ffffff">
  14. <H1>[whatwg] WebSocket bufferedAmount includes overhead or not</H1>
  15. <!--htdig_noindex-->
  16. <B>Anne van Kesteren</B>
  17. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20bufferedAmount%20includes%20overhead%20or%20not&In-Reply-To=%3Cop.u93851ur64w2qv%40annevk-t60%3E"
  18. TITLE="[whatwg] WebSocket bufferedAmount includes overhead or not">annevk at opera.com
  19. </A><BR>
  20. <I>Thu Mar 25 02:11:51 PDT 2010</I>
  21. <P><UL>
  22. <LI>Previous message: <A HREF="025615.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  23. </A></li>
  24. <LI>Next message: <A HREF="025623.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  25. </A></li>
  26. <LI> <B>Messages sorted by:</B>
  27. <a href="date.html#25621">[ date ]</a>
  28. <a href="thread.html#25621">[ thread ]</a>
  29. <a href="subject.html#25621">[ subject ]</a>
  30. <a href="author.html#25621">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--/htdig_noindex-->
  35. <!--beginarticle-->
  36. <PRE>On Wed, 24 Mar 2010 23:08:43 +0100, Olli Pettay &lt;<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">Olli.Pettay at helsinki.fi</A>&gt;
  37. wrote:
  38. &gt;<i> On 3/24/10 11:33 PM, Ian Hickson wrote:
  39. </I>&gt;&gt;<i> I guess I'm unclear on whether bufferedAmount should return:
  40. </I>&gt;&gt;<i>
  41. </I>&gt;&gt;<i> 1. the sum of the count of characters sent?
  42. </I>&gt;&gt;<i> (what would we do when we add binary?)
  43. </I>&gt;<i>
  44. </I>&gt;<i> I believe this is actually what we want.
  45. </I>&gt;<i> If web developer sends a string which is X long,
  46. </I>&gt;<i> bufferedAmount should report X.
  47. </I>&gt;<i>
  48. </I>&gt;<i> And when we add binary, if buffer which has size Y is
  49. </I>&gt;<i> sent, that Y is added to bufferedAmount.
  50. </I>&gt;<i>
  51. </I>&gt;<i> The reason why I'd like it to work this way is that
  52. </I>&gt;<i> IMO scripts should be able to check whether the data
  53. </I>&gt;<i> they have posted is actually sent over the network.
  54. </I>
  55. Wait, so when you pass a DOMString you add the number of 16-bit units and
  56. when you pass a ByteArray (or whatever we end up calling it) you add the
  57. number of bytes?
  58. I think what also matters here is how the protocol will evolve. Is it that
  59. expectation that send(DOMString) can eventually send very different things
  60. over the wire depending on how the server reacts to the initial handshake
  61. request? How do the various options we have evaluate against the potential
  62. scenarios coming out of that?
  63. --
  64. Anne van Kesteren
  65. <A HREF="http://annevankesteren.nl/">http://annevankesteren.nl/</A>
  66. </PRE>
  67. <!--endarticle-->
  68. <!--htdig_noindex-->
  69. <HR>
  70. <P><UL>
  71. <!--threads-->
  72. <LI>Previous message: <A HREF="025615.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  73. </A></li>
  74. <LI>Next message: <A HREF="025623.html">[whatwg] WebSocket bufferedAmount includes overhead or not
  75. </A></li>
  76. <LI> <B>Messages sorted by:</B>
  77. <a href="date.html#25621">[ date ]</a>
  78. <a href="thread.html#25621">[ thread ]</a>
  79. <a href="subject.html#25621">[ subject ]</a>
  80. <a href="author.html#25621">[ author ]</a>
  81. </LI>
  82. </UL>
  83. <hr>
  84. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  85. mailing list</a><br>
  86. <!--/htdig_noindex-->
  87. </body></html>