Re: [hybi] I-D Action:draft-ietf-hyb / libwebsockets updated to 05 framing

Andy Green <andy@warmcat.com> Wed, 09 February 2011 09:03 UTC

Return-Path: <andy.warmcat.com@googlemail.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 96C5E3A6959 for <hybi@core3.amsl.com>; Wed, 9 Feb 2011 01:03:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 VcrXXLEX-Iv5 for <hybi@core3.amsl.com>; Wed, 9 Feb 2011 01:03:45 -0800 (PST)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by core3.amsl.com (Postfix) with ESMTP id 183853A6957 for <hybi@ietf.org>; Wed, 9 Feb 2011 01:03:44 -0800 (PST)
Received: by wwa36 with SMTP id 36so7210232wwa.13 for <hybi@ietf.org>; Wed, 09 Feb 2011 01:03:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=tajCps9ltTg8rrS892iXTyPX6ytN0b9KI4XkK3rd2SM=; b=ltZXK95jVCnKwuGKkSOlG7kjtIcb/bE8YziuendfIhskFYZ0Gsx+WMloiLI87dQiQ9 oGlKHfPwfUCqn9AYnNdSpZeTnFZI/Ok0KWroPqKoe7u+gqkoI+6q3G/INWOakXrZnmEN XVcb/Kt16qDho0u+CVkPDuqG4WM3wqtdddafU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=qY+Ln7s+FqggPVQXP58OgM4sfQG62yW0s/9IQrIwQrpIRESIco6z03ldCkpzplwcFv Z/65dp+4mZevOxJCcscOUPu/CJYtSxmIHHhSfjw0Ocu67eVI8lyK7mRoPjUM/hTR4weh B/HoLuZ2TZxI3p/k/v5GpDz9LF0mfK65f4ddc=
Received: by 10.227.156.15 with SMTP id u15mr4934977wbw.220.1297242187714; Wed, 09 Feb 2011 01:03:07 -0800 (PST)
Received: from [192.168.1.4] (cpc1-nrte21-2-0-cust677.8-4.cable.virginmedia.com [81.111.78.166]) by mx.google.com with ESMTPS id u9sm83819wbg.0.2011.02.09.01.03.06 (version=SSLv3 cipher=RC4-MD5); Wed, 09 Feb 2011 01:03:06 -0800 (PST)
Sender: Andy Green <andy.warmcat.com@googlemail.com>
Message-ID: <4D52584A.4070000@warmcat.com>
Date: Wed, 09 Feb 2011 09:03:06 +0000
From: Andy Green <andy@warmcat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101217 Fedora/3.1.7-0.39.b3pre.fc15 Thunderbird/3.1.7
MIME-Version: 1.0
To: Hybi <hybi@ietf.org>
References: <20110208231502.31262.8249.idtracker@localhost>
In-Reply-To: <20110208231502.31262.8249.idtracker@localhost>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] I-D Action:draft-ietf-hyb / libwebsockets updated to 05 framing
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: Wed, 09 Feb 2011 09:03:46 -0000

On 02/08/11 23:15, Somebody in the thread at some point said:

> http://www.ietf.org/internet-drafts/draft-ietf-hybi-thewebsocketprotocol-05.txt

Nice, the per-frame SHA-1 is gone and no AES junk; syntax for extension 
specification in the client header is defined.  If you want to (in 
violation though) as a client you can compatibly set the frame nonce to 
00000000 and skip munging altogether.

I added in 05 framing support for client and server in libwebsockets, 
the support is:

  Server: 76/00, 04 and 05 selected dynamically per-client
  Client: 04 or 05 selectable

There's a -v switch on the test client and ping applets to set spec 
version to use, eg, -v4

Extension header should be recognized and rejected since it doesn't 
support any.

Ran out of time to do the new close stuff before "real work" must start 
but otherwise it's probably a useful sparring partner for other client 
or server implementations.

http://git.warmcat.com/cgi-bin/cgit/libwebsockets/

-Andy