/lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-September/022674.html

https://github.com/whatwg/whatwg.org · HTML · 270 lines · 88 code · 175 blank · 7 comment · 0 complexity · 7baf00cfa220c4b6593164b03c25f981 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] Feature requests in WebSocket (Was: BWTP for WebSocket, transfer protocol)
  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%20Feature%20requests%20in%20WebSocket%20%28Was%3A%20BWTP%20for%20WebSocket%2C%0A%20transfer%20protocol%29&In-Reply-To=%3C4AA0CAF7.60706%40mortbay.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="022801.html">
  11. <LINK REL="Next" HREF="023061.html">
  12. </HEAD>
  13. <BODY BGCOLOR="#ffffff">
  14. <H1>[whatwg] Feature requests in WebSocket (Was: BWTP for WebSocket, transfer protocol)</H1>
  15. <!--htdig_noindex-->
  16. <B>Greg Wilkins</B>
  17. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Feature%20requests%20in%20WebSocket%20%28Was%3A%20BWTP%20for%20WebSocket%2C%0A%20transfer%20protocol%29&In-Reply-To=%3C4AA0CAF7.60706%40mortbay.com%3E"
  18. TITLE="[whatwg] Feature requests in WebSocket (Was: BWTP for WebSocket, transfer protocol)">gregw at mortbay.com
  19. </A><BR>
  20. <I>Fri Sep 4 01:08:23 PDT 2009</I>
  21. <P><UL>
  22. <LI>Previous message: <A HREF="022801.html">[whatwg] RFC: Alternatives to storage mutex for cookies and localStorage
  23. </A></li>
  24. <LI>Next message: <A HREF="023061.html">[whatwg] Feature requests in WebSocket
  25. </A></li>
  26. <LI> <B>Messages sorted by:</B>
  27. <a href="date.html#22674">[ date ]</a>
  28. <a href="thread.html#22674">[ thread ]</a>
  29. <a href="subject.html#22674">[ subject ]</a>
  30. <a href="author.html#22674">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--/htdig_noindex-->
  35. <!--beginarticle-->
  36. <PRE>
  37. Ian Hickson wrote:
  38. &gt;<i> On Fri, 14 Aug 2009, Jeremy Orlow wrote:
  39. </I>&gt;&gt;<i> &gt; On Fri, Aug 14, 2009 at 3:45 AM, Ian Hickson &lt;<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">ian at hixie.ch</A>&gt; wrote:
  40. </I>&gt;&gt;&gt;<i> &gt; &gt; On Fri, 7 Aug 2009, Jonas Sicking wrote:
  41. </I>&gt;&gt;&gt;<i> &gt; &gt; What would the API look like?
  42. </I>&gt;&gt;<i> &gt;
  43. </I>&gt;&gt;<i> &gt; It seems like it could be done transparently to the web developer. If
  44. </I>&gt;&gt;<i> &gt; you open 2 sockets to the same server, the UA could just open another
  45. </I>&gt;&gt;<i> &gt; &quot;channel&quot; on the same connection.
  46. </I>&gt;<i>
  47. </I>&gt;<i> That would force the complexity on the server-side developer, which I
  48. </I>&gt;<i> don't think we would want to do.
  49. </I>
  50. The server on the server-side could hide the details from the
  51. server side developer.
  52. With HTTP, the server side developer handles requests and has
  53. little idea what connection they came over. Frequently requests
  54. from multiple connections are multiplexed onto a single connection
  55. by proxies, netscalers or similar. Server side developers
  56. do not have to deal with this. Developers of the server do.
  57. &gt;&gt;&gt;<i> &gt; &gt; What would the wire level look like?
  58. </I>&gt;&gt;<i> &gt;
  59. </I>&gt;&gt;<i> &gt; It could be as simple as this: An extra byte or two at the beginning of
  60. </I>&gt;&gt;<i> &gt; every message that says which &quot;channel&quot; is transmitting. A way to send
  61. </I>&gt;&gt;<i> &gt; control messages, two of which would be used to open and close channels.
  62. </I>&gt;<i>
  63. </I>&gt;<i> I don't understand why we'd do that rather than just use two TCP
  64. </I>&gt;<i> connections.
  65. </I>
  66. Because TCP connections are not free. Resources are often
  67. allocated server side per connection. As a server side developer,
  68. I would much rather have a little more parsing to do on fewer connections
  69. than less parsing on many more connections.
  70. Browsers safely multiple plex requests from multiple windows
  71. and tabs onto shared connections for HTTP, I don't see why that
  72. would be a problem for a new protocol.
  73. regards
  74. </PRE>
  75. <!--endarticle-->
  76. <!--htdig_noindex-->
  77. <HR>
  78. <P><UL>
  79. <!--threads-->
  80. <LI>Previous message: <A HREF="022801.html">[whatwg] RFC: Alternatives to storage mutex for cookies and localStorage
  81. </A></li>
  82. <LI>Next message: <A HREF="023061.html">[whatwg] Feature requests in WebSocket
  83. </A></li>
  84. <LI> <B>Messages sorted by:</B>
  85. <a href="date.html#22674">[ date ]</a>
  86. <a href="thread.html#22674">[ thread ]</a>
  87. <a href="subject.html#22674">[ subject ]</a>
  88. <a href="author.html#22674">[ author ]</a>
  89. </LI>
  90. </UL>
  91. <hr>
  92. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  93. mailing list</a><br>
  94. <!--/htdig_noindex-->
  95. </body></html>