/lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-August/022167.html

https://github.com/whatwg/whatwg.org · HTML · 227 lines · 78 code · 142 blank · 7 comment · 0 complexity · 571d75d5a8b6d0063a8ecd0c256cc527 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] Web Socket Default Ports Confusing?
  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%20Web%20Socket%20Default%20Ports%20Confusing%3F&In-Reply-To=%3C9124e09b0908191840x47479ad3we79dc81ea8787534%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="022164.html">
  11. <LINK REL="Next" HREF="022177.html">
  12. </HEAD>
  13. <BODY BGCOLOR="#ffffff">
  14. <H1>[whatwg] Web Socket Default Ports Confusing?</H1>
  15. <!--htdig_noindex-->
  16. <B>Yuzo Fujishima</B>
  17. <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Web%20Socket%20Default%20Ports%20Confusing%3F&In-Reply-To=%3C9124e09b0908191840x47479ad3we79dc81ea8787534%40mail.gmail.com%3E"
  18. TITLE="[whatwg] Web Socket Default Ports Confusing?">yuzo at google.com
  19. </A><BR>
  20. <I>Wed Aug 19 18:40:07 PDT 2009</I>
  21. <P><UL>
  22. <LI>Previous message: <A HREF="022164.html">[whatwg] FYI: How to write a spec document.
  23. </A></li>
  24. <LI>Next message: <A HREF="022177.html">[whatwg] Microdata DOM API
  25. </A></li>
  26. <LI> <B>Messages sorted by:</B>
  27. <a href="date.html#22167">[ date ]</a>
  28. <a href="thread.html#22167">[ thread ]</a>
  29. <a href="subject.html#22167">[ subject ]</a>
  30. <a href="author.html#22167">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--/htdig_noindex-->
  35. <!--beginarticle-->
  36. <PRE>Hi,
  37. as per <A HREF="http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-35">http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-35</A> ,
  38. in web socket handshake, a client omits the port number if it is 80/443
  39. while
  40. a server omits it if it is 81/815.
  41. Isn't this confusing?
  42. I guess the client side behavior mimics HTTP and hence hard
  43. to be changed. How about changing the server side behavior such that
  44. port number is always explicitly stated regardless of the value?
  45. (Behavior is still inconsistent but less confusing, IMHO.)
  46. ....
  47. 4. Client-side requirements
  48. 4.1. Handshake
  49. 6. Send the following bytes:
  50. 48 6f 73 74 3a 20
  51. Send the /host/ value, converted to ASCII lowercase, and encoded
  52. as US-ASCII.
  53. If /secure/ is false, and /port/ is not 80, or if /secure/ is
  54. true, and /port/ is not 443, then send an 0x3a byte (&quot;:&quot;)
  55. followed by the value of /port/, expressed as a base-ten
  56. integer, encoded as US-ASCII.
  57. ...
  58. 5. Server-side requirements
  59. 5.1. Minimal handshake
  60. NOTE: Do not include the port if it is the default port for Web
  61. Socket protocol connections of the type in question (81 for
  62. unencrypted connections and 815 for encrypted connections).
  63. Yuzo
  64. </PRE>
  65. <!--endarticle-->
  66. <!--htdig_noindex-->
  67. <HR>
  68. <P><UL>
  69. <!--threads-->
  70. <LI>Previous message: <A HREF="022164.html">[whatwg] FYI: How to write a spec document.
  71. </A></li>
  72. <LI>Next message: <A HREF="022177.html">[whatwg] Microdata DOM API
  73. </A></li>
  74. <LI> <B>Messages sorted by:</B>
  75. <a href="date.html#22167">[ date ]</a>
  76. <a href="thread.html#22167">[ thread ]</a>
  77. <a href="subject.html#22167">[ subject ]</a>
  78. <a href="author.html#22167">[ author ]</a>
  79. </LI>
  80. </UL>
  81. <hr>
  82. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  83. mailing list</a><br>
  84. <!--/htdig_noindex-->
  85. </body></html>