[hybi] WebSocket connection throttling clarification requested

Adam Rice <ricea@chromium.org> Wed, 23 January 2013 09:30 UTC

Return-Path: <ricea@google.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 82FC821F86A3 for <hybi@ietfa.amsl.com>; Wed, 23 Jan 2013 01:30:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.974
X-Spam-Level:
X-Spam-Status: No, score=-102.974 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0xaKjXBr0dk9 for <hybi@ietfa.amsl.com>; Wed, 23 Jan 2013 01:30:58 -0800 (PST)
Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by ietfa.amsl.com (Postfix) with ESMTP id 4300521F844E for <hybi@ietf.org>; Wed, 23 Jan 2013 01:30:57 -0800 (PST)
Received: by mail-bk0-f52.google.com with SMTP id y7so1483067bkt.11 for <hybi@ietf.org>; Wed, 23 Jan 2013 01:30:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=GqtPu29wkU90Igp+KHhVPUeOqRbW+yRbXEK0CUCkffk=; b=YKS1wfnqDrkRG9evn/pqjjP9yUrWP//qQGv/s0QOB2xB8DIZ1knbCA4+GHVfLv2EkB VoUHHvPlNgp28qok88S47/PB6ORaLf1y4J8lr9AHtgMJZFpx728UqkN7fP+58zc9PBbB MKptOrrJrCppDjG9F6c89vdi8AoNh+NE4TzRBZW7ci9HQvmNpVhxHV2q1SE/Wnc+TO/w HFTAEyN/UP61DCcWSP8eoRbfjmkbRogoheofCcGvvton7fENfSN8/u5iR2MKZy6wEnUs ojC1+Ou50il86ePhNfsRu3fYA0Q3BmQp1PvAEXPE3oa0Prz8OJQFLYAxINVGY7YLVVGR 4FnQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=GqtPu29wkU90Igp+KHhVPUeOqRbW+yRbXEK0CUCkffk=; b=ZcW+m4ZMtKJPDtLtzs8sZ+rAxiYDteYZA1xfJCT/o+rVfHc4TvvAUBCak8IkHjnVcT TSDSKcfjCVuEPAzP/3Ia3Tk/g5bOfT+Cc8Gakm1+gzPyPqZFBXjmrmzUHHRXl9UFg7Ri ZkKfTk5FfFkFlK5Rp/g+NbG2CWkdhLadgidPE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type:x-gm-message-state; bh=GqtPu29wkU90Igp+KHhVPUeOqRbW+yRbXEK0CUCkffk=; b=iL6gyRlO0fEncnPbz6aVEUzS9d9sczTY78CWDHiQUPqvbLZoTKmnRweou9l7HE3jrI u/ifb7pymHYRsucox1Ts4ayvZHm1izu/3tkVFaIP42Y628A6nbEZkNbHxNbnVoS/SfN3 fsvUpnTupNsHD1YR3wNhjekK+1vUYu6hvyKWm484b3cQ4HVN01IP84z8mR2d6chIDO+v UANoz58sizBJp6y7A1b9XLiCnZif0NW6zKzZLJv4EqEkk5QtWT1fbkYD7W0sEK6156fD m1tIb9rj4wUrR0HtvqapDcR/AoPvjVG30nCp3/90MmdZsfT81A2Z/q+DLRuwUubRWQ7c T00A==
MIME-Version: 1.0
X-Received: by 10.204.9.23 with SMTP id j23mr182432bkj.2.1358933457008; Wed, 23 Jan 2013 01:30:57 -0800 (PST)
Sender: ricea@google.com
Received: by 10.204.114.19 with HTTP; Wed, 23 Jan 2013 01:30:56 -0800 (PST)
Date: Wed, 23 Jan 2013 18:30:56 +0900
X-Google-Sender-Auth: urcDu3Bq5BJQJ88df9Xyh3JAe5g
Message-ID: <CAHixhFp_eNG84RjbyM_9RAVR3dub3gWs6xbQH6DgJ5wA7qV0Ew@mail.gmail.com>
From: Adam Rice <ricea@chromium.org>
To: hybi@ietf.org
Content-Type: multipart/alternative; boundary="00151758a602fa781604d3f1596b"
X-Gm-Message-State: ALoCoQnyu7F5RuRPHSJkpd8+vfEStSdIUr48gMxfLlthjbT/W4zICw9e3iyKN9idqBRt1d+h7kYf8349MJe8Fs0/9eAinCp7dAUbKoiAu6L7xJLng504YDYD5Fwvkfnr1l4EN18bp/A9nREFwq8P2GS+7Omqx5bNE+MytgJCc6PDXXnP6kVBAttPB5daU63iRvKGlnAOu6rX
Subject: [hybi] WebSocket connection throttling clarification requested
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, 23 Jan 2013 09:32:28 -0000

Hi,

I would like to ask for clarification on section 4.1 item 2 of WebSocket
RFC 6455. It reads (emphasis mine):

2. If the client already has a WebSocket connection to the remote host (IP
address) *identified by /host/ and port /port/ pair,* even if the remote
host is known by another name, the client MUST wait until that connection
has been established or for that connection to have failed. There MUST be
no more than one connection in a CONNECTING state. If multiple connections *to
the same IP address* are attempted simultaneously, the client MUST
serialize them so that there is no more than one connection at a time
running through the following steps.

The first sentence seems to imply that connections should be throttled on
the basis of (host, port) pairs, ie. that ws://192.0.2.1:80/ and ws://
192.0.2.1:81/ should be considered independent for the purposes of
connection throttling. The last sentence seems to imply that connections
should be throttled on the basis of IP address only, so connections ws://
192.0.2.1:80/ and ws://192.0.2.1:81/ should be placed in the same bucket
for throttling purposes.

Which interpretation is correct?

Thank you,
Adam Rice