Re: [hybi] Web sockets and existing HTTP stacks

Pieter Hintjens <ph@imatix.com> Mon, 01 February 2010 11:12 UTC

Return-Path: <pieterh@gmail.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2630B28C1C9 for <hybi@core3.amsl.com>; Mon, 1 Feb 2010 03:12:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8LxrNS8v1Mup for <hybi@core3.amsl.com>; Mon, 1 Feb 2010 03:12:41 -0800 (PST)
Received: from mail-iw0-f184.google.com (mail-iw0-f184.google.com [209.85.223.184]) by core3.amsl.com (Postfix) with ESMTP id 4BFFE28C1C6 for <hybi@ietf.org>; Mon, 1 Feb 2010 03:12:41 -0800 (PST)
Received: by iwn14 with SMTP id 14so4445545iwn.17 for <hybi@ietf.org>; Mon, 01 Feb 2010 03:13:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=l9H4ZeNzdNPkZSC+3DCE0AkywdEcVnwZ4WTSfgxYXkQ=; b=ew+TjUh+8LKWZO79V9+sj/DVn1/1vD1TeeMnNo7amcdMQGWt1ftcOeuTFmKbd0vCnY 4mmo0Fehcl3m2Z62RntfpDybkLS+O5mP//Rc5wTM0Q2tmMiIAjBvJY++xb8H8dUxBGmA Jfqc3cHHVwIKo8PEmiZvbkQtf2K4GjHztsR4w=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=M2U4mb4eUyjeMkIyuEwKg2xG2cyJrANEAOZ+dqpB3FeXTBBwi2AlYrTranwb79JE8H JZ7i4McwDPB723oqJYrayy5k+K+p4kP/pN6nM1H2QPTDeqsgGSDlhkoyEus6t4l1H2m+ 8EwF9LMQAfjfX6R5yBob0oPXvdEPyhzYgFVVc=
MIME-Version: 1.0
Sender: pieterh@gmail.com
Received: by 10.231.149.201 with SMTP id u9mr516770ibv.1.1265022791096; Mon, 01 Feb 2010 03:13:11 -0800 (PST)
In-Reply-To: <20100201105240.GD20940@shareable.org>
References: <557ae280911200711i5493e654k67c1f5f07336bfb9@mail.gmail.com> <4B2C1D52.9020505@webtide.com> <5c902b9e0912181640n497169cdrfa71f9a2908e6ef3@mail.gmail.com> <20091219005442.GA10949@shareable.org> <4B2C287E.1030006@webtide.com> <Pine.LNX.4.64.1001310835410.3846@ps20323.dreamhostps.com> <5821ea241001311219j111d25a3h27fb2d05a2ece32d@mail.gmail.com> <20100201012914.GC20940@shareable.org> <6.2.5.6.2.20100131205550.06e1c700@resistor.net> <20100201105240.GD20940@shareable.org>
From: Pieter Hintjens <ph@imatix.com>
Date: Mon, 01 Feb 2010 12:12:51 +0100
X-Google-Sender-Auth: 77edf386dbaf7c46
Message-ID: <5821ea241002010312k3ef057acw63b8e4651a28627a@mail.gmail.com>
To: Jamie Lokier <jamie@shareable.org>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: hybi@ietf.org
Subject: Re: [hybi] Web sockets and existing HTTP stacks
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Feb 2010 11:12:42 -0000

On Mon, Feb 1, 2010 at 11:52 AM, Jamie Lokier <jamie@shareable.org> wrote:

> I think you first said WebSocket should use a different port from HTTP
> because it's a different protoocol, yet here you're saying a different
> port for WebSocket does not have proper justification.
>
> Also I don't see what putting WebSocket on port 81 has to do with secure
> versions of a protocol.
>
> Can you clarify what you mean?

This was discussed some time ago on this list.  IANA will hesitate to
allocate two ports to a new protocol when one is sufficient.  SSL/TLS
is easy to handle as an upgrade.  We had this exact discussion on the
AMQP working group.  Further, asking for two ports in the sub-4096
range (especially port 81!) is asking for rejection.  (It seems
unbelievably optimistic-slash-something to ask for port 81...!)

Failing to get port 81 does not give Web Socket the right to break the
contract on port 80.  Thus this feeble argument:

* We followed the rules and asked for our own ports 81 and 444 (iirc) :-)
* IANA said no to our request! :-(
* We were pointed to port 80 by IANA :-/
* So we're allowed to do what we like on port 80! :-)  Yay!

Sorry to be critical but I have arguments like this with my six year
old daughter and even she knows it's untenable.

-Pieter