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

Iñaki Baz Castillo <ibc@aliax.net> Wed, 31 August 2011 16:30 UTC

Return-Path: <ibc@aliax.net>
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 E506021F8D5B for <hybi@ietfa.amsl.com>; Wed, 31 Aug 2011 09:30:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.642
X-Spam-Level:
X-Spam-Status: No, score=-2.642 tagged_above=-999 required=5 tests=[AWL=0.035, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, 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 W+u8k8uvupNb for <hybi@ietfa.amsl.com>; Wed, 31 Aug 2011 09:30:59 -0700 (PDT)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by ietfa.amsl.com (Postfix) with ESMTP id 4834921F8D54 for <hybi@ietf.org>; Wed, 31 Aug 2011 09:30:59 -0700 (PDT)
Received: by qyk34 with SMTP id 34so3109646qyk.10 for <hybi@ietf.org>; Wed, 31 Aug 2011 09:32:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.65.85 with SMTP id h21mr484537qci.46.1314808349576; Wed, 31 Aug 2011 09:32:29 -0700 (PDT)
Received: by 10.229.219.141 with HTTP; Wed, 31 Aug 2011 09:32:29 -0700 (PDT)
In-Reply-To: <4E5E5EDA.6000606@gmail.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>
Date: Wed, 31 Aug 2011 18:32:29 +0200
Message-ID: <CALiegfn5zbTncZ9okpKPKzWCwsE65dz5Uqw88=K4g0Ag4ihtig@mail.gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
To: Philipp Serafin <phil127@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
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 16:31:00 -0000

2011/8/31 Philipp Serafin <phil127@gmail.com>:
> Why can't we take the presence of a subprotocol header in the client
> request as a hint that the client wants to speak a "standard" protocol?
> Then it would be reasoneable for the server to reject the connection if
> none of those standard protocols are supported.
> However, if the client sends no protocol header, then the server can
> still accept the connection and speak an unnamed, proprietary protocol.

That's exactly what I meant, but I did it worse :)

Thanks a lot.

-- 
Iñaki Baz Castillo
<ibc@aliax.net>