Re: [hybi] Final HTTP responses and WebSocket handshake

John Fallows <john.fallows@kaazing.com> Sat, 12 February 2011 00:59 UTC

Return-Path: <john.fallows@kaazing.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 995673A6A57 for <hybi@core3.amsl.com>; Fri, 11 Feb 2011 16:59:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level:
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 dLh1Aj3NmDJG for <hybi@core3.amsl.com>; Fri, 11 Feb 2011 16:59:26 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by core3.amsl.com (Postfix) with ESMTP id 563C23A6A6A for <hybi@ietf.org>; Fri, 11 Feb 2011 16:59:26 -0800 (PST)
Received: by iym1 with SMTP id 1so3196730iym.31 for <hybi@ietf.org>; Fri, 11 Feb 2011 16:59:42 -0800 (PST)
MIME-Version: 1.0
Received: by 10.42.218.136 with SMTP id hq8mr1494036icb.379.1297472380637; Fri, 11 Feb 2011 16:59:40 -0800 (PST)
Received: by 10.42.179.202 with HTTP; Fri, 11 Feb 2011 16:59:40 -0800 (PST)
X-Originating-IP: [24.130.233.21]
In-Reply-To: <AANLkTi=rFieVgfMaBn+pqp_M1bLdf0+Bm0NCApL+Rpih@mail.gmail.com>
References: <OFDD4ABE05.D6C65821-ON88257833.00822B82-88257834.0009316B@playstation.sony.com> <AANLkTi=rFieVgfMaBn+pqp_M1bLdf0+Bm0NCApL+Rpih@mail.gmail.com>
Date: Fri, 11 Feb 2011 16:59:40 -0800
Message-ID: <AANLkTimqWYiF010-NV7Fkrkrei+TcdV+V2stwLTZYLFM@mail.gmail.com>
From: John Fallows <john.fallows@kaazing.com>
To: Greg Wilkins <gregw@webtide.com>
Content-Type: multipart/alternative; boundary="20cf3043475c5a9177049c0b5486"
Cc: hybi@ietf.org, Yutaka_Takeda@playstation.sony.com
Subject: Re: [hybi] Final HTTP responses and WebSocket 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: Sat, 12 Feb 2011 00:59:27 -0000

Agreed.

I would much prefer to see full HTTP compatibility before the handshake
completes with a 101 response.

John.

On Thu, Feb 10, 2011 at 5:48 PM, Greg Wilkins <gregw@webtide.com> wrote:

> On 11 February 2011 12:40,  <Yutaka_Takeda@playstation.sony.com> wrote:
> >
> > o  Cannot get full benefit out of HTTP protocol during the handshake as
> it
> > does not expect a final response:
> >   For example:
> >    - Can not redirect WebSocket handshake to another server (for load
> > balancing, fail-over, etc.)
> >    - Can not perform user authentication (Basic, Digest, etc.) during the
> > handshake.
> >    - Similarly, 407 authentication cannot be forced by the server.
>
> +1
>
> In the ancient history of this list, I have long argued for exactly this.
>
> Apparently there are some security concerns about browser redirection,
> which I never really understood... and even if there are, I don't see
> the reason that the protocol should deny the use of non 101 handshake
> responses to all clients.  I think the protocol should allow arbitrary
> response codes (because it can't actually prevent them being sent by
> non WS servers anyway), and then individual clients can decide which
> responses they will handle (which may be better discuss in the
> appropriate HTML 5 forums regarding the specific websocket API).
>
> cheers
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>



-- 
>|< Kaazing Corporation >|<
John Fallows | CTO | +1.650.960.8148
444 Castro St, Suite 1100 | Mountain View, CA 94041, USA