Re: [hybi] Client offers invalid WS protocols, what must the server do? 101???

Philipp Serafin <phil127@gmail.com> Wed, 31 August 2011 20:21 UTC

Return-Path: <phil127@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 81B4321F8B31 for <hybi@ietfa.amsl.com>; Wed, 31 Aug 2011 13:21:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.536
X-Spam-Level:
X-Spam-Status: No, score=-3.536 tagged_above=-999 required=5 tests=[AWL=0.062, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9iljfdHzBDsI for <hybi@ietfa.amsl.com>; Wed, 31 Aug 2011 13:21:17 -0700 (PDT)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id 5422921F8B2D for <hybi@ietf.org>; Wed, 31 Aug 2011 13:21:17 -0700 (PDT)
Received: by bkar4 with SMTP id r4so1451583bka.31 for <hybi@ietf.org>; Wed, 31 Aug 2011 13:22:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; bh=xvKQ2B/EM8F4GnJzd35DRy8q/C94vUH9nC+wf1KZeGY=; b=czA8HRsXNJzjspgRjwU86dMMzBFfieu8l2NcNCtyD8iCgxoPFzto9NbMLpZm7dxBh+ DLOIRw6dMsGDSLSLnAWYbZokiGEFaqL9i/tiu59QIvsKX1ELldjWVLqmaAk1j404w41M CA3Vy8lpY5s/0iDpT2cGjZlGFHY37icHWJxTM=
Received: by 10.204.133.7 with SMTP id d7mr526333bkt.104.1314821146278; Wed, 31 Aug 2011 13:05:46 -0700 (PDT)
Received: from [212.201.70.0] ([212.201.70.0]) by mx.google.com with ESMTPS id v27sm302443bkt.48.2011.08.31.13.05.44 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 13:05:45 -0700 (PDT)
Message-ID: <4E5E9416.2040206@gmail.com>
Date: Wed, 31 Aug 2011 22:05:42 +0200
From: Philipp Serafin <phil127@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
MIME-Version: 1.0
To: John Tamplin <jat@google.com>
References: <CALiegfkC9dLOnLfSQApE9OjoSV1RXT7cTumZ6+yCR1tWo_cvmw@mail.gmail.com> <4E5CBEA0.2080605@isode.com> <CALiegfn3dPyZMR3ZZ3CtwOeAmC4sxd0=kos4Z82B2qeh_aZASQ@mail.gmail.com> <4E5CC6A7.7030304@isode.com> <CALiegfnc-YRPZZvgJjmvtafKnkJB7rXJ9KcPDKL-ceeAdwGEGQ@mail.gmail.com> <4E5CC8B8.7090702@isode.com> <CALiegfmSs-FhS5AuJHWFhGdbxS4pLSHA1Kk2y_P5GwwG_YneyQ@mail.gmail.com> <CABLsOLCBSnW+R9vr=RbRosTo55tv-_gG9yLdoj5AqW4rU6rcPQ@mail.gmail.com> <4E5D04F8.30801@isode.com> <4E5E5EDA.6000606@gmail.com> <4E5E79C4.2080100@callenish.com> <CAMaigVkreB5P2ieXJxZbQ3yPZs0kwmJmqvA0t0jHMBA40BjF-Q@mail.gmail.com> <CALiegfmi3et2==qziAg1toWHjkiBAUrLfQDPmEKuU+Jx_D6ZTQ@mail.gmail.com> <CABLsOLC0m-NpG6L-95rju3vLinMa3d8b3pncoM53fkoN+xs3Fg@mail.gmail.com>
In-Reply-To: <CABLsOLC0m-NpG6L-95rju3vLinMa3d8b3pncoM53fkoN+xs3Fg@mail.gmail.com>
X-Enigmail-Version: 1.3.1
Content-Type: multipart/alternative; boundary="------------040205080405080303010403"
Cc: hybi@ietf.org
Subject: Re: [hybi] Client offers invalid WS protocols, what must the server do? 101???
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 31 Aug 2011 20:21:18 -0000

I may be wrong, but this looks like a feature that would be really cheap
to specify and implement now (even if we don't know if it'll actually be
of much use) but very hard later when we'd have to take lots and lots of
back-compat issues into consideration.

I'd just hate to see subprotocols go the way of the HTTP Accept header,
which is practically unuseable in the browser world today, even though
it would solve some real-world problems. (As shown by the &type=... URL
params in many APIs)

Am 31.08.2011 21:26, schrieb John Tamplin:
> On Wed, Aug 31, 2011 at 3:21 PM, Iñaki Baz Castillo <ibc@aliax.net
> <mailto:ibc@aliax.net>> wrote:
>
>     2011/8/31 Philipp Serafin <phil127@gmail.com
>     <mailto:phil127@gmail.com>>:
>     > If a client sends a protocol header, I don't see why it can't
>     indicate ALL
>     > protocols it supports for this connection. If the server
>     supports none of
>     > those protocols, and if neither client nor server are part of a
>     single web
>     > application (so there is no implicit custom protocol they could both
>     > understand), I don't see how a sucessful connection could be
>     established.
>
>     Of course. Say the opposite means allowing ugly/annoying pseudo
>     negotiations.
>
>
> Personally, I see little value at this point for subprotocols.  They
> basically represent an agreement between the application end points
> for a protocol to run on top of WS.  Since the app developer owns both
> endpoints, they can already use whatever protocol they like.  It is a
> convenient place to send selection between multiple protocols
> out-of-band, but no more.
>
> Maybe in the future there are standard subprotocols, and you could
> have some off-the-shelf product to offload those subprotocols, but
> initially there seems to be little value so I don' t think we need to
> go overboard imagining things that would be useful with only limited
> experience with WS itself. 
>
> -- 
> John A. Tamplin
> Software Engineer (GWT), Google