[hybi] Bug in draft-11 (Connection header)

Iñaki Baz Castillo <ibc@aliax.net> Wed, 24 August 2011 14:00 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 E84C921F8556 for <hybi@ietfa.amsl.com>; Wed, 24 Aug 2011 07:00:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.646
X-Spam-Level:
X-Spam-Status: No, score=-2.646 tagged_above=-999 required=5 tests=[AWL=0.031, 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 nCPowBTo68Ql for <hybi@ietfa.amsl.com>; Wed, 24 Aug 2011 07:00:38 -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 65CE421F8540 for <hybi@ietf.org>; Wed, 24 Aug 2011 07:00:38 -0700 (PDT)
Received: by qyk34 with SMTP id 34so2676315qyk.10 for <hybi@ietf.org>; Wed, 24 Aug 2011 07:01:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.43.3 with SMTP id u3mr120491qce.261.1314194508735; Wed, 24 Aug 2011 07:01:48 -0700 (PDT)
Received: by 10.229.211.68 with HTTP; Wed, 24 Aug 2011 07:01:48 -0700 (PDT)
Date: Wed, 24 Aug 2011 16:01:48 +0200
Message-ID: <CALiegf=zktGKabsnwLVbWt1662tX5XrbRJx3X=yg5hy9JxbYow@mail.gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
To: hybi@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Subject: [hybi] Bug in draft-11 (Connection header)
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, 24 Aug 2011 14:00:39 -0000

Page 31:

   3.  If the response lacks a "Connection" header field or the
       "Connection" header field contains a value that is not an ASCII
       case-insensitive match for the value "Upgrade", the client MUST
       _Fail the WebSocket Connection_.


"Connection" header allows a list of tokens separated by comma. So the
following is valid (in fact Firefox 8 uses it):

  Connection: keep-alive, upgrade

However the text above invalidates sich header value since:

    the "Connection" header field contains a value that is not an ASCII
    case-insensitive match for the value "Upgrade"


Please replace it with:

   3.  If the response lacks a "Connection" header field or the
       "Connection" header field does not contain a value that is an ASCII
       case-insensitive match for the value "Upgrade", the client MUST
       _Fail the WebSocket Connection_.


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