Re: [hybi] #1: HTTP Compliance

Dave Cridland <dave@cridland.net> Mon, 17 May 2010 14:36 UTC

Return-Path: <dave@cridland.net>
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 4218B3A6B8B for <hybi@core3.amsl.com>; Mon, 17 May 2010 07:36:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.534
X-Spam-Level:
X-Spam-Status: No, score=-0.534 tagged_above=-999 required=5 tests=[AWL=-1.135, BAYES_50=0.001, J_CHICKENPOX_14=0.6]
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 Keysw1Bm0W7q for <hybi@core3.amsl.com>; Mon, 17 May 2010 07:36:57 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [IPv6:2001:470:1f09:882:2e0:81ff:fe29:d16a]) by core3.amsl.com (Postfix) with ESMTP id 421AE3A6CD8 for <hybi@ietf.org>; Mon, 17 May 2010 07:35:13 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id 72D8E11680AB; Mon, 17 May 2010 15:35:04 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (peirce.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jz6P6njkQHdW; Mon, 17 May 2010 15:34:55 +0100 (BST)
Received: from Sputnik (unknown [62.3.217.253]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 2345211680AA; Mon, 17 May 2010 15:34:55 +0100 (BST)
References: <068.d07026741c6694cd80652d2a7d34f236@tools.ietf.org> <4BF106AD.6020506@webtide.com> <Pine.LNX.4.64.1005170918310.25609@ps20323.dreamhostps.com> <4BF11920.2080307@webtide.com> <Pine.LNX.4.64.1005171039050.25609@ps20323.dreamhostps.com> <4BF12FF1.2020101@webtide.com>
In-Reply-To: <4BF12FF1.2020101@webtide.com>
MIME-Version: 1.0
Message-Id: <15307.1274106895.116423@Sputnik>
Date: Mon, 17 May 2010 15:34:55 +0100
From: Dave Cridland <dave@cridland.net>
To: Greg Wilkins <gregw@webtide.com>, Server-Initiated HTTP <hybi@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
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 14:36:58 -0000

On Mon May 17 13:00:49 2010, Greg Wilkins wrote:
> Websocket clients are going to receive 404's, 503's etc.
> They are going to have to handle them sensibly and report
> reasonable errors to the user.

I entirely and wholeheartedly agree. I think this is so utterly  
self-evident as to warrant no discussion whatsoever, but just to keep  
people happy, I'll continue with some examples of why this  
circumstance might occur.

Currently, in the XMPP world, there is BOSH. BOSH is a comet-like  
mechanism for tunelling XMPP (and other things) through HTTP. The URI  
is sometimes inherent in the client as delivered over HTTP; but it is  
also sometimes hand configured.

It makes sense that if we were to use WebSockets in a similar way,  
then a desktop client might initiate a session with an HTTP service  
without knowing a priori if it's an HTTP or WebSocket service. If the  
URI is wrong, the client will receive an HTTP error. This will have  
to be handled sanely by the client and presented to the user.

If anyone wants to suggest that these clients should be using TCP  
instead, I'll point out in a highly patronizing way that taking XMPP  
- a TCP native protocol - and slinging it over HTTP as BOSH sprang up  
due to this being impractical in some limited networks, so, y'know,  
duh.

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade