Re: [hybi] An alternative design for the web socket handshake

Ian Hickson <ian@hixie.ch> Thu, 13 May 2010 21:15 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 17F173A6D45 for <hybi@core3.amsl.com>; Thu, 13 May 2010 14:15:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.936
X-Spam-Level:
X-Spam-Status: No, score=-1.936 tagged_above=-999 required=5 tests=[AWL=0.663, 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 hWJmq9murx+r for <hybi@core3.amsl.com>; Thu, 13 May 2010 14:15:54 -0700 (PDT)
Received: from looneymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id D87373A6D57 for <hybi@ietf.org>; Thu, 13 May 2010 14:15:38 -0700 (PDT)
Received: from ps20323.dreamhostps.com (ps20323.dreamhost.com [69.163.222.251]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a1.g.dreamhost.com (Postfix) with ESMTP id A739815D57F; Thu, 13 May 2010 14:15:28 -0700 (PDT)
Date: Thu, 13 May 2010 21:15:26 +0000
From: Ian Hickson <ian@hixie.ch>
To: Adam Barth <ietf@adambarth.com>
In-Reply-To: <y2s5c4444771005131226l18de7b18l6d80411890049552@mail.gmail.com>
Message-ID: <Pine.LNX.4.64.1005132114240.12269@ps20323.dreamhostps.com>
References: <y2s5c4444771005131226l18de7b18l6d80411890049552@mail.gmail.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] An alternative design for the web socket handshake
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: Thu, 13 May 2010 21:15:55 -0000

On Thu, 13 May 2010, Adam Barth wrote:
> 
> Instead of basing the web socket handshake on HTTP, we should base the
> handshake on TLS.

This would require the hypothetical hobbyist implementing from scratch to 
use a TLS library rather than just using the sockets API directly. I think 
this is an unacceptable increase in complexity.

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