Re: [hybi] [whatwg] Web sockets and existing HTTP stacks

Ian Hickson <ian@hixie.ch> Tue, 22 December 2009 02:35 UTC

Return-Path: <ian@hixie.ch>
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 6527B3A6AD2 for <hybi@core3.amsl.com>; Mon, 21 Dec 2009 18:35:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.546
X-Spam-Level:
X-Spam-Status: No, score=-2.546 tagged_above=-999 required=5 tests=[AWL=0.053, 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 eyYhynJRSGwg for <hybi@core3.amsl.com>; Mon, 21 Dec 2009 18:35:34 -0800 (PST)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 55EBA3A6ACF for <hybi@ietf.org>; Mon, 21 Dec 2009 18:35:34 -0800 (PST)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 715F716D3E7; Mon, 21 Dec 2009 18:35:18 -0800 (PST)
Date: Tue, 22 Dec 2009 02:35:16 +0000
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4B302D5C.3080904@webtide.com>
Message-ID: <Pine.LNX.4.62.0912220227020.18249@hixie.dreamhostps.com>
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> <5c902b9e0912181711o65f31266yd86b8db618a1dcb1@mail.gmail.com> <B0B57710-91BC-4CEC-ABA6-50318038E64B@mnot.net> <4B302D5C.3080904@webtide.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Cc: hybi@ietf.org
Subject: Re: [hybi] [whatwg] 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: Tue, 22 Dec 2009 02:35:35 -0000

On Tue, 22 Dec 2009, Greg Wilkins wrote:
>
> Mark Nottingham wrote:
> > There was a fairly long thread initiated by Ian on squid-dev, FYI:
> >   http://marc.info/?t=124700786100001&r=1&w=2
> > 
> > That discussion is very similar to this one.
> 
> This is looking more an more like a hostile takeover bid of port 80.

Just so we're clear, Web Sockets (then TCPConnection) was originally 
completely independent of HTTP. It was then requested that the handshake 
be made HTTP-compatible such that an HTTP server could share its port with 
a Web Sockets server, so that port 443 could be used (needed to get around 
man-in-the-middle proxies). Even then, though, the Web Sockets spec 
originally specifically discouraged the use of port 443 and recommended 
the use of ports 81 and 815. It was only in response to feedback 
suggesting that discouraging port 443 was a bad idea that the spec was 
changed to be neutral on the matter. Then I tried registering ports 81 and 
815 and the IANA told me to just use ports 80 and 443.

So describing this as a "hostile takeover bid" is rather revisionist. It's 
only through three years of responding to feedback that we've reached this 
point, and I've done my best to ensure that the handshake really is 
compatible with HTTP to the extent necessary to handle the use cases that 
people have brought to the table.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'