Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard

Iñaki Baz Castillo <> Sun, 24 July 2011 11:11 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 34FF021F8B25; Sun, 24 Jul 2011 04:11:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.67
X-Spam-Status: No, score=-2.67 tagged_above=-999 required=5 tests=[AWL=0.007, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id awN6d44iFjwB; Sun, 24 Jul 2011 04:11:04 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 8768821F8B11; Sun, 24 Jul 2011 04:11:04 -0700 (PDT)
Received: by qyk9 with SMTP id 9so547470qyk.10 for <multiple recipients>; Sun, 24 Jul 2011 04:11:04 -0700 (PDT)
MIME-Version: 1.0
Received: by with SMTP id s31mr2537878qco.228.1311505862938; Sun, 24 Jul 2011 04:11:02 -0700 (PDT)
Received: by with HTTP; Sun, 24 Jul 2011 04:11:02 -0700 (PDT)
In-Reply-To: <>
References: <> <> <9031.1311082001.631622@puncture> <> <> <> <> <> <9031.1311270000.588511@puncture> <> <> <> <9031.1311286867.939466@puncture> <> <>
Date: Sun, 24 Jul 2011 13:11:02 +0200
Message-ID: <>
From: =?UTF-8?Q?I=C3=B1aki_Baz_Castillo?= <>
To: David Endicott <>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: Server-Initiated HTTP <>, IETF-Discussion <>
Subject: Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Sun, 24 Jul 2011 11:11:06 -0000

2011/7/22 David Endicott <>om>:
> The technological advantages are worthy, when it's used, but when it doesn't
> come into play, there are added inefficiencies.

~100 ms (if the DNS server is not local and there is no DNS cache for
the given domain). And just during the WS connection, no more. Taking
into account that a WS will be *usually* connected after loading a web
page, such ~100ms in a non-full-realtime protocol is insignificant.

> Also the name resolution
> of the HTTP that serves the Javascript that opens the WS should remain
> constant.


> If WS resolves the host/domain to a different address than the
> HTTP it was spawned from, it becomes a method to bypass same-origin / CORS
> restrictions.

No, you are wrong. You are doing invalid assumptions (in all the
thread) about how SRV works. Perhaps you should learn about it before
making such assertions. Maybe if you read

   When the client constructs the WebSocket handshake HTTP request, the
   URI MUST be set as described in Section 3.2 of
   [I-D.ietf-hybi-thewebsocketprotocol] regardless of the usage of SRV
   mechanism.  This is, DNS SRV resolution for a "ws:" or "wss:" URI
   does not alter the usual construction of the WebSocket handshake

> I favor a minimalist core with extensibility.    Name resolution happens
> before the WS opening handshake, so I continue to see this as outside the
> domain of the WS protocol.   I would prefer that name resolution be provided
> by a selectable method.  That way, in 20 years, when name resolution needs
> have again changed, we'll have the ability to adapt.

This does not make sense, even if you have been saying the same during
all the thread. So, do you think that a mail client can *select* how
to resolve why??? obviously if the mail client
does not perform DNS MX resolution for things will not work,
why? because mail servers destinations are specified via DNS MX
resource records and because the SMTP protocol mandates it.

David, don't take me wrong but:

- You are speaking about SRV with no knowlodegde enough about it (so
making really wrong assumptions).
- You have a vision about "resolving URI's" that does not fit well in
the real world. The protocol/specification decides how resolution
takes place, rather than the client.


Iñaki Baz Castillo