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

https://github.com/whatwg/whatwg.org · HTML · 99 lines · 69 code · 23 blank · 7 comment · 0 complexity · ca60fae78f8b27b841bcea45fba18feb 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=%3Cde17d48e1003031842p7bd175dev8b09819a8385e8f7%40mail.gmail.com%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="025406.html">
  11. <LINK REL="Next" HREF="025405.html">
  12. </HEAD>
  13. <BODY BGCOLOR="#ffffff">
  14. <H1>[whatwg] WebSocket bufferedAmount includes overhead or not.</H1>
  15. <!--htdig_noindex-->
  16. <B>Fumitoshi Ukai (&#40284;&#39164;&#25991;&#25935;)</B>
  17. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20WebSocket%20bufferedAmount%20includes%20overhead%20or%20not.&In-Reply-To=%3Cde17d48e1003031842p7bd175dev8b09819a8385e8f7%40mail.gmail.com%3E"
  18. TITLE="[whatwg] WebSocket bufferedAmount includes overhead or not.">ukai at chromium.org
  19. </A><BR>
  20. <I>Wed Mar 3 18:42:01 PST 2010</I>
  21. <P><UL>
  22. <LI>Previous message: <A HREF="025406.html">[whatwg] oninput for contentEditable
  23. </A></li>
  24. <LI>Next message: <A HREF="025405.html">[whatwg] WebSocket bufferedAmount includes overhead or not.
  25. </A></li>
  26. <LI> <B>Messages sorted by:</B>
  27. <a href="date.html#25403">[ date ]</a>
  28. <a href="thread.html#25403">[ thread ]</a>
  29. <a href="subject.html#25403">[ subject ]</a>
  30. <a href="author.html#25403">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--/htdig_noindex-->
  35. <!--beginarticle-->
  36. <PRE>Hi,
  37. I noticed that WebSocket spec updated to not inlcude framing overhead in
  38. bufferedAmount.
  39. <A HREF="http://lists.whatwg.org/pipermail/commit-watchers-whatwg.org/2010/003971.html">http://lists.whatwg.org/pipermail/commit-watchers-whatwg.org/2010/003971.html</A>
  40. I tried to implement it in WebKit, but found it make hard to implement
  41. correctly. <A HREF="https://bugs.webkit.org/show_bug.cgi?id=35571">https://bugs.webkit.org/show_bug.cgi?id=35571</A>
  42. It's easy after WebSocket is closed (just add length of message), but while
  43. it's open, we'll manage buffer including frame bytes and underlying socket
  44. will write arbitrary length of the buffer (may not be on frame boundary)
  45. To get bufferdAmount correctly without framing overhead, we need to parse
  46. the buffer again. It's not light operation and it's challenge to make it
  47. effective.
  48. I think including frame overhead is much easier.
  49. Could you revert it?
  50. --
  51. Fumitoshi Ukai
  52. -------------- next part --------------
  53. An HTML attachment was scrubbed...
  54. URL: &lt;<A HREF="http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100304/aa17036f/attachment.htm">http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100304/aa17036f/attachment.htm</A>&gt;
  55. </PRE>
  56. <!--endarticle-->
  57. <!--htdig_noindex-->
  58. <HR>
  59. <P><UL>
  60. <!--threads-->
  61. <LI>Previous message: <A HREF="025406.html">[whatwg] oninput for contentEditable
  62. </A></li>
  63. <LI>Next message: <A HREF="025405.html">[whatwg] WebSocket bufferedAmount includes overhead or not.
  64. </A></li>
  65. <LI> <B>Messages sorted by:</B>
  66. <a href="date.html#25403">[ date ]</a>
  67. <a href="thread.html#25403">[ thread ]</a>
  68. <a href="subject.html#25403">[ subject ]</a>
  69. <a href="author.html#25403">[ 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>