Re: [hybi] [Editorial Errata Reported] RFC6455 (3473)

Salvatore Loreto <salvatore.loreto@ericsson.com> Thu, 14 February 2013 08:19 UTC

Return-Path: <salvatore.loreto@ericsson.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 6068F21F8419 for <hybi@ietfa.amsl.com>; Thu, 14 Feb 2013 00:19:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.248
X-Spam-Level:
X-Spam-Status: No, score=-104.248 tagged_above=-999 required=5 tests=[AWL=-2.000, BAYES_00=-2.599, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
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 YInG7GoLjknE for <hybi@ietfa.amsl.com>; Thu, 14 Feb 2013 00:19:28 -0800 (PST)
Received: from mailgw1.ericsson.se (mailgw1.ericsson.se [193.180.251.45]) by ietfa.amsl.com (Postfix) with ESMTP id 1E84721F84FB for <hybi@ietf.org>; Thu, 14 Feb 2013 00:19:27 -0800 (PST)
X-AuditID: c1b4fb2d-b7f316d0000028db-63-511c9e0e594e
Received: from esessmw0191.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw1.ericsson.se (Symantec Mail Security) with SMTP id C7.12.10459.E0E9C115; Thu, 14 Feb 2013 09:19:26 +0100 (CET)
Received: from mail.lmf.ericsson.se (153.88.115.8) by esessmw0191.eemea.ericsson.se (153.88.115.85) with Microsoft SMTP Server id 8.3.279.1; Thu, 14 Feb 2013 09:19:26 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id E5B042ADF for <hybi@ietf.org>; Thu, 14 Feb 2013 10:19:25 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id BDF6354204 for <hybi@ietf.org>; Thu, 14 Feb 2013 10:19:23 +0200 (EET)
Received: from Salvatore-Loretos-MacBook-Pro.local (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 6A17E53CB1 for <hybi@ietf.org>; Thu, 14 Feb 2013 10:19:23 +0200 (EET)
Message-ID: <511C9E0D.9050606@ericsson.com>
Date: Thu, 14 Feb 2013 10:19:25 +0200
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: hybi@ietf.org
References: <20130201073846.78956B1E003@rfc-editor.org> <CABkgnnVO_qfFAKY28y_VL5vjXdUYtuAV5vNtFLpAFUk9zPiJkQ@mail.gmail.com> <CAHixhFpR7SPWoiQrduDa5oDnss0GPQKa4ptroD0dVgP4+v7OqQ@mail.gmail.com> <CABkgnnUkq0bzVbq1Np=S03JHMtCatZ9GFwo2atnRxda_ukuLUw@mail.gmail.com> <511C962C.8080904@ericsson.com>
In-Reply-To: <511C962C.8080904@ericsson.com>
Content-Type: multipart/alternative; boundary="------------050404070504070904010708"
X-Virus-Scanned: ClamAV using ClamSMTP
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJLMWRmVeSWpSXmKPExsUyM+JvjS7fPJlAg75pKhbvX25jcmD0WLLk J1MAYxSXTUpqTmZZapG+XQJXxoodBxgLZqZWtB1/ydLA+Myji5GTQ0LARGLijU5GCFtM4sK9 9WwgtpDASUaJq7uZuhi5gOwNjBIN+/+xQTjnGCVur2tnhnAOMkrs3LiSFcI5xSixYdVNZpB+ XgFtiZktt1hAbBYBVYnHSzcxgdhsAmYSzx9uAasRFUiW+HjnGitEvaDEyZlPwOpFgOzurWuA ajg4hAXsJI7PCISYv4xJ4sz3RrA5nAI6Eve+9IPVMwuESew5No0J4gc1iavnNjFD/KAl0Xu2 k2kCo/AsJCtmIWmBsG0lLsy5DhWXl9j+dg4zhK0rceH/FBTxBYxsqxjZcxMzc9LLDTcxAoP/ 4JbfujsYT50TOcQozcGiJM4b5nohQEggPbEkNTs1tSC1KL6oNCe1+BAjEwenVAMjX+szndiI OaGzo6e8n2lbHXnAfUeLQfzMlrZvB6zPJDIGlZ8VP7d8rb3XzY64Uzl/PpY3HvsTf3vvs42f p8/pTnhlI+MpKXfOon6R9/bpv5RqYu7t+Vq7WWddzOxYt2OqP6ZfTJ+zRPPu8r/rEy443j2/ tqvo8urpj17cmPfyz+a6FT7flzvKXVRiKc5INNRiLipOBAB41C5gTAIAAA==
Subject: Re: [hybi] [Editorial Errata Reported] RFC6455 (3473)
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, 14 Feb 2013 08:19:42 -0000

to be clear, I am sympathetic with the need to better clarify the text 
and serialize
on both |host| and |port| but with the meaning of IP and |port|


-- 
Salvatore Loreto, PhD
www.sloreto.com



On 2/14/13 9:45 AM, Salvatore Loreto wrote:
> the original idea was to serialize the tentative to connect to the 
> same IP address (especially in
> the case several /host/ names share the same IP address);
> IMO it becomes clear if you read the second paragraph of the bullet #2 
> and the NOTE.
>
>
>     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.
>         If the client cannot determine the IP address of the remote host
>         (for example, because all communication is being done through a
>         proxy server that performs DNS queries itself), then the client
>         MUST assume for the purposes of this step that each host name
>         refers to a distinct remote host, and instead the client SHOULD
>         limit the total number of simultaneous pending connections to a
>         reasonably low number (e.g., the client might allow simultaneous
>         pending connections to a.example.com and b.example.com, but if
>         thirty simultaneous connections to a single host are requested,
>         that may not be allowed).  For example, in a web browser context,
>         the client needs to consider the number of tabs the user has open
>         in setting a limit to the number of simultaneous pending
>         connections.
>
>
>         NOTE: This makes it harder for a script to perform a denial-of-
>         service attack by just opening a large number of WebSocket
>         connections to a remote host.  A server can further reduce the
>         load on itself when attacked by pausing before closing the
>         connection, as that will reduce the rate at which the client
>         reconnects.
>
>
> -- 
> Salvatore Loreto, PhD
> www.sloreto.com
>
>
> On 2/5/13 3:00 PM, Martin Thomson wrote:
>>
>> That is approximately where my reasoning lead. I think that the 
>> *safe* option is to have one connection per name.
>>
>> On Feb 4, 2013 3:20 AM, "Adam Rice" <ricea@google.com 
>> <mailto:ricea@google.com>> wrote:
>>
>>     On 1 February 2013 23:27, Martin Thomson
>>     <martin.thomson@gmail.com <mailto:martin.thomson@gmail.com>> wrote:
>>
>>         Is this "host and port" or "IP and port" ?  That too is
>>         unclear.  If
>>         I'm sharding a.example.com <http://a.example.com> and
>>         b.example.com <http://b.example.com> and they are served on
>>         the same VIP, is the expectation that wss://a.example.com/
>>         <http://a.example.com/> and
>>         wss://b.example.com/ <http://b.example.com/> can't have
>>         concurrent connection attempts?
>>
>>
>>     I was assuming that in the first sentence the text "connection to
>>     the remote host (IP address) ... even if the remote host is known
>>     by another name" made the interpretation of "IP address" unambiguous.
>>
>>     But section 4.1 says that /host/ is defined in section 3, and
>>     section 3  actually defines /host/ as "host = <host, defined in
>>     [RFC3986], Section 3.2.2
>>     <http://tools.ietf.org/html/rfc3986#section-3.2.2>>", ie. the
>>     host portion of the URI.
>>
>>     So now I don't know.
>>
>>
>>
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi