Re: [hybi] Comments about draft-13

Greg Wilkins <gregw@intalio.com> Thu, 08 September 2011 00:35 UTC

Return-Path: <gregw@intalio.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 1479C21F8C45 for <hybi@ietfa.amsl.com>; Wed, 7 Sep 2011 17:35:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.91
X-Spam-Level:
X-Spam-Status: No, score=-2.91 tagged_above=-999 required=5 tests=[AWL=0.067, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 IAWmZMTBSzfk for <hybi@ietfa.amsl.com>; Wed, 7 Sep 2011 17:35:55 -0700 (PDT)
Received: from mail-vw0-f43.google.com (mail-vw0-f43.google.com [209.85.212.43]) by ietfa.amsl.com (Postfix) with ESMTP id 61EB621F8C37 for <hybi@ietf.org>; Wed, 7 Sep 2011 17:35:55 -0700 (PDT)
Received: by vws10 with SMTP id 10so235189vws.16 for <hybi@ietf.org>; Wed, 07 Sep 2011 17:37:45 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.36.52 with SMTP id n20mr38136vdj.388.1315442264765; Wed, 07 Sep 2011 17:37:44 -0700 (PDT)
Received: by 10.52.186.134 with HTTP; Wed, 7 Sep 2011 17:37:44 -0700 (PDT)
In-Reply-To: <4E67FD5A.4050308@isode.com>
References: <CALiegfkUMDfuRC+16ZcLo__2OqAcQ1UVDGa_610ykEAe6yZViw@mail.gmail.com> <CALiegf=wO6w5UMLO-hsn8o0cX3__SuxMDrgqvScuS6QWdNhptw@mail.gmail.com> <4E67FD5A.4050308@isode.com>
Date: Thu, 08 Sep 2011 10:37:44 +1000
Message-ID: <CAH_y2NEg1PigBKxuVZEcdUGGtiLWpDLBcXGVeb_=AMGJY-FYLQ@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: hybi@ietf.org
Subject: Re: [hybi] Comments about draft-13
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: Thu, 08 Sep 2011 00:35:56 -0000

The only thing I think is missing is the ability to speak multiple protocols.

The server should be able to say "foo" and "bar" as well as "foo" or "bar"

I don't see any reason that protocols have to be exclusive.  For
example I might want to use an oauth protocol with a chat protocol.

cheers




On 8 September 2011 09:25, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
> Hi Iñaki,
>
> Iñaki Baz Castillo wrote:
>
>> 2011/9/2 Iñaki Baz Castillo <ibc@aliax.net>:
>>
>>>
>>> 3) Section 4.2.2 does include nothing about a 4XX HTTP response code
>>> for the case in which the WS clients offers N WS subprotocols and the
>>> server supports no one of them. Current text states that the server
>>> MUST reply 101 without Sec-WebSocket-Protocol, so the client would
>>> then MUST Fail_The_Connection.
>>>
>>> There has been a long thread recently suggesting that in that case
>>> (and just in *that* case) the server whould *reject* the GET request
>>> with a *specific* HTTP status code which would mean "I don't support
>>> any of your suggested WS protocols, so I cannot accept the WS session
>>> because I have no idea what we are supposed to speak".
>>>
>>> This is a new protocol, so feel *free* to create a new "HTTP" response
>>> code for this case, maybe:
>>>
>>> 488 WebSocket SubProtocol Not Supported
>>>
>>> As I explained in other thread, this status code could help the human
>>> user and the client application developer to realize that his software
>>> is not up-to-date with the service requeriments ("your programm is too
>>> old, upgrade please").
>>>
>>
>>
>> Hi, any new consideration about this?
>> Thanks a lot.
>>
> After thinking more about this: I would prefer to leave the current
> behaviour as is:
>
> C: I would like to use either subprotocol "foo" or "bar"
> S: 101 (WebSocket handshake), but speak neither
>
> at this point the client can decide to close the connection, or decide that
> it can cope with lack of the subprotocols.
>
> You propose:
> C: I would like to use either subprotocol "foo" or "bar"
> S: 488 speak neither
>
> At this point if the client can cope with lack of support for both "foo" and
> "bar", it has to redo the handshake without mentioning them.
> Otherwise it can close the connection.
>
> I don't think there is a significant difference between 2 cases: the number
> of round trips is the same and the same behaviour can be achieved easily in
> either case.
>
> I would also like to keep handling of subprotocols the same as handling of
> extensions, i.e. client can always list them as optional for the server to
> handle.
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>