Re: [hybi] Web sockets and existing HTTP stacks

Jamie Lokier <jamie@shareable.org> Mon, 01 February 2010 01:28 UTC

Return-Path: <jamie@shareable.org>
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 B97E03A68E5 for <hybi@core3.amsl.com>; Sun, 31 Jan 2010 17:28:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.4
X-Spam-Level:
X-Spam-Status: No, score=-2.4 tagged_above=-999 required=5 tests=[AWL=0.199, BAYES_00=-2.599]
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 gjXjddRfFvfJ for <hybi@core3.amsl.com>; Sun, 31 Jan 2010 17:28:47 -0800 (PST)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id EEA563A6889 for <hybi@ietf.org>; Sun, 31 Jan 2010 17:28:46 -0800 (PST)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1Nbl6I-0002RY-6h; Mon, 01 Feb 2010 01:29:14 +0000
Date: Mon, 01 Feb 2010 01:29:14 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Pieter Hintjens <ph@imatix.com>
Message-ID: <20100201012914.GC20940@shareable.org>
References: <557ae280911171402v7546e5e7n93a1e57f87dc10e5@mail.gmail.com> <557ae280911200711i5493e654k67c1f5f07336bfb9@mail.gmail.com> <Pine.LNX.4.62.0912032347360.15540@hixie.dreamhostps.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>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <5821ea241001311219j111d25a3h27fb2d05a2ece32d@mail.gmail.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
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 01:28:47 -0000

Pieter Hintjens wrote:
> On Sun, Jan 31, 2010 at 10:22 AM, Ian Hickson <ian@hixie.ch> wrote:
> 
> > Well, yeah. That's going to be the case with any protocol that shares its
> > port with HTTP. Web Socket tries to make this easier by making it at least
> > _possible_ to parse the header with an HTTP stack, if not necessarily
> > easy.
> 
> Do you not understand the impact of breaking (cheerfully or not) a
> 30-year standard respected by the entire Internet?
> 
> Post 80 is not shared by protocols.  Port 80 IS HTTP by definition, by
> contract.

It is a fact that internet access is only granted over ports 80
and/or 443 at some locations.

This is why WebSocket uses those.  It is for that practical reason,
not from a desire to break the port convention.  Thus there is no
point complaining on port convention grounds.

An earlier version of WebSocket proposed port 81, but that was changed to 80.

I do wonder if those sites only allowing port 80 all run intercepting
proxies on port 80 which would prevent WebSocket using it, so that it might
as well use port 81 anyway. Anybody know?

-- Jamie