Re: [hybi] Ticket#1 Http Compliance

Greg Wilkins <gregw@webtide.com> Thu, 13 May 2010 08:24 UTC

Return-Path: <gregw@webtide.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 D087C3A6C00 for <hybi@core3.amsl.com>; Thu, 13 May 2010 01:24:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.351
X-Spam-Level:
X-Spam-Status: No, score=-0.351 tagged_above=-999 required=5 tests=[AWL=-0.352, BAYES_50=0.001]
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 stB+v-+yp+aE for <hybi@core3.amsl.com>; Thu, 13 May 2010 01:24:56 -0700 (PDT)
Received: from mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by core3.amsl.com (Postfix) with ESMTP id 3BE343A6C2D for <hybi@ietf.org>; Thu, 13 May 2010 01:17:21 -0700 (PDT)
Received: by wyb36 with SMTP id 36so786281wyb.31 for <hybi@ietf.org>; Thu, 13 May 2010 01:17:08 -0700 (PDT)
Received: by 10.227.137.208 with SMTP id x16mr7993985wbt.124.1273738626280; Thu, 13 May 2010 01:17:06 -0700 (PDT)
Received: from [192.168.0.100] (host116-234-static.43-88-b.business.telecomitalia.it [88.43.234.116]) by mx.google.com with ESMTPS id h22sm7245295wbh.21.2010.05.13.01.17.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 May 2010 01:17:05 -0700 (PDT)
Message-ID: <4BEBB57E.50604@webtide.com>
Date: Thu, 13 May 2010 10:17:02 +0200
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: "hybi@ietf.org" <hybi@ietf.org>
References: <4BEAB021.5030600@webtide.com> <p2oad99d8ce1005120920v943c9e6fy98618cc3ce8f76fa@mail.gmail.com>
In-Reply-To: <p2oad99d8ce1005120920v943c9e6fy98618cc3ce8f76fa@mail.gmail.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] Ticket#1 Http Compliance
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 08:24:58 -0000

Roberto Peon wrote:

> On the handshake? Which features, specifically? 

The requirements can't really talk about handshakes or specific
features - because those are attributes of a particular solution.


> I'm asking because the
> two sentences here come in fundamental conflict.. It is HTTP/1.1, but
> not really.
> I'd expect something like:
> 
> On a connection established with the expectation that the primary or
> first protocol spoken is not WebSocket, the connection shall be
> considered that protocol and not WebSocket until a successful UPGRADE or
> similar change-of-protocol request is acknowledged. In the case of HTTP,
> WebSocket-only server implementations are required to implement the
> following subset of rfc2616, but are not required to implement any more
> than that.


The context for this requirement is set by a prior requirement:

  REQ. 6:  The WebSocket protocol MUST allow HTTP and WebSocket
           connections to be served from the same port.

the context is also further specified by the opening phrase
of the requirement:  "When sharing host and "well known" port with HTTP, .."

So this requirement only applies to websocket connections that
are established via shared HTTP port.   It does not prevent
there being other mechanisms for opening websocket connections
that do not use a shared HTTP port.

The requirement is trying to remove the doubt about when is
it HTTP and when it is not.    It says that when you are
working on a shared HTTP port, then the connection *is a*
HTTP connection up until both ends have agreed that it
has been upgraded.


regards