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:26 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 9C0CE21F85A7; Sun, 24 Jul 2011 04:26:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.37
X-Spam-Status: No, score=-2.37 tagged_above=-999 required=5 tests=[AWL=-0.293, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_24=0.6, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id QeSnwFMyMZQp; Sun, 24 Jul 2011 04:26:55 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id EDA6421F8586; Sun, 24 Jul 2011 04:26:54 -0700 (PDT)
Received: by qwc23 with SMTP id 23so2674153qwc.31 for <multiple recipients>; Sun, 24 Jul 2011 04:26:54 -0700 (PDT)
MIME-Version: 1.0
Received: by with SMTP id ja8mr2630820qcb.75.1311506813735; Sun, 24 Jul 2011 04:26:53 -0700 (PDT)
Received: by with HTTP; Sun, 24 Jul 2011 04:26:53 -0700 (PDT)
In-Reply-To: <>
References: <> <> <> <> <> <9031.1311270000.588511@puncture> <> <> <> <> <>
Date: Sun, 24 Jul 2011 13:26:53 +0200
Message-ID: <>
From: =?UTF-8?Q?I=C3=B1aki_Baz_Castillo?= <>
To: Willy Tarreau <>
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:26:55 -0000

2011/7/22 Willy Tarreau <>eu>:
> Iñaki, what we're saying is that the resolving applies first to HTTP
> well before it is WS. For instance, a client could connect to an HTTP
> server, fetch a few objects, then decide to upgrade the connection to
> switch to WebSocket. DNS resolving for WS would not even be involved
> here.

Hi. Maybe I'm the only who assumes that, usually, the WS server is not
colocated within the initial web server.

This is, your text below is valid just in the case I browse a web page
in (so port 80) and retrieve a WS URI to
connect to ws:// (so also port 80). In that case you
say that the http/ws client would decide to upgrade the connection so
"it must assume that the WS handshake must be sent to the same IP:port
resolved for the HTTP communication".

I don't agree with yout point. Doing the "upgrade" does not mean
reusing an existing TCP connection (in which HTTP took place) for
other purpose. Instead, doing the WS upgrade means opening (or
reusing) a TCP connection, sending a HTTP GET with special semantics,
expect 101 and then start a bidirectional frame-based communication.
So sending the GET with "upgrade" has nothing to do with any previous
HTTP communication with the HTTP server.

> I agree with what others have been saying : if/when a different handshake
> is supported, eg. on a specific port without the HTTP upgrade, then it
> will make sense.

Do you mean WS as a complete separate protocol running on a specific
WS port and so? I'd really would like it (rather than the exotic
pseudo-HTTP mechanism used right now), but I expect it will never

> But as of now we're relying on the lower layer. As Greg
> said it, without a deep change in HTTP you won't be able to make the rule
> a MUST for WS. However, John's suggest of using a SHOULD when the record
> exists and the client can see it looks fine. What's the problem if not all
> of your clients go to the same hosts ? You can even announce all of your
> servers with A/AAAA and with SRV as well as long as they're running on the
> same ports. Those who can use SRV just have more information than the other
> ones and can be served better.

Having multiple A/AAAA records for a single domain does not provide
failover (as clients usually take just the first IP). I see your
point, but I expect no success at all.


Iñaki Baz Castillo