Re: [hybi] #1: HTTP Compliance

Ian Hickson <ian@hixie.ch> Mon, 17 May 2010 11:27 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 9E44728C12C for <hybi@core3.amsl.com>; Mon, 17 May 2010 04:27:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.982
X-Spam-Level:
X-Spam-Status: No, score=-0.982 tagged_above=-999 required=5 tests=[AWL=-0.242, BAYES_20=-0.74]
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 86Q22zxn8MV9 for <hybi@core3.amsl.com>; Mon, 17 May 2010 04:27:48 -0700 (PDT)
Received: from looneymail-a2.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id C277C28C132 for <hybi@ietf.org>; Mon, 17 May 2010 04:20:35 -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-a2.g.dreamhost.com (Postfix) with ESMTP id D35EC16D3CC; Mon, 17 May 2010 04:20:27 -0700 (PDT)
Date: Mon, 17 May 2010 11:20:27 +0000
From: Ian Hickson <ian@hixie.ch>
To: Greg Wilkins <gregw@webtide.com>
In-Reply-To: <4BF11920.2080307@webtide.com>
Message-ID: <Pine.LNX.4.64.1005171039050.25609@ps20323.dreamhostps.com>
References: <068.d07026741c6694cd80652d2a7d34f236@tools.ietf.org> <4BF106AD.6020506@webtide.com> <Pine.LNX.4.64.1005170918310.25609@ps20323.dreamhostps.com> <4BF11920.2080307@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" <hybi@ietf.org>
Subject: Re: [hybi] #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: Mon, 17 May 2010 11:27:49 -0000

On Mon, 17 May 2010, Greg Wilkins wrote:
>
> The server is going to have to send responses and is currently faced 
> with a difficult (or impossible) choice between sending a HTTP compliant 
> or a websocket compliant response.

If the server is a Web Socket server, and it received a request from a 
Web Socket client, then why would it care about HTTP?

If the server is not a Web Socket server, then why would it ever consider 
sending a response back using Web Sockets?

If the server is aware of Web Sockets and HTTP, and gets a request from an 
HTTP client, then why would it respond with Web Sockets?

I really don't understand what the choice is. In every situation I can 
see, there's an unambiguous right response.


> A client is going to see non 101 HTTP responses - no matter if we rule 
> that is non websocket compliant.

I don't know what you mean by "non websocket compliant" here. If the 
server isn't a Web Socket server, it can't possibly violate the Web Socket 
spec, since it isn't a conformance class that the Web Socket spec covers. 
The spec says how the client should handle non-Web Socket responses, it's 
not non-conforming to handle them.


> In reality, clients and servers are going to have to talk compliant HTTP 
> to each other to deal with these cases - regardless of whatever the 
> protocol spec says.

I have no idea what this means.


> Servers will send 4xx and 5xx responses and clients will correctly 
> interpret them.

Web Socket servers will not send 4xx and 5xx responses.


> So you can continue to pretend that these conversations will never 
> actually happen.... but that will not change the reality that they will.

Why would they happen?

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