Re: [hybi] Websocket: two protocols into one, and Internet rules broken

Anthony Catel <a.catel@weelya.com> Thu, 16 June 2011 14:40 UTC

Return-Path: <a.catel@weelya.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 5377211E8219 for <hybi@ietfa.amsl.com>; Thu, 16 Jun 2011 07:40:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.849
X-Spam-Level:
X-Spam-Status: No, score=-1.849 tagged_above=-999 required=5 tests=[AWL=-0.150, BAYES_00=-2.599, J_CHICKENPOX_43=0.6, MIME_8BIT_HEADER=0.3]
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 VtIFl8RsnwH4 for <hybi@ietfa.amsl.com>; Thu, 16 Jun 2011 07:40:52 -0700 (PDT)
Received: from hermes.weelya.com (hermes.weelya.com [91.121.5.68]) by ietfa.amsl.com (Postfix) with ESMTP id 3309411E80F0 for <hybi@ietf.org>; Thu, 16 Jun 2011 07:40:52 -0700 (PDT)
Received: from [192.168.1.239] (g231204086.adsl.alicedsl.de [92.231.204.86]) by hermes.weelya.com (Postfix) with ESMTPSA id B7F674AFFD; Thu, 16 Jun 2011 16:46:06 +0200 (CEST)
Message-ID: <4DFA15E9.50800@weelya.com>
Date: Thu, 16 Jun 2011 16:40:41 +0200
From: Anthony Catel <a.catel@weelya.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: Iñaki Baz Castillo <ibc@aliax.net>
References: <BANLkTim4pKwx6wYC3WwXFWET+gx0bnjigQ@mail.gmail.com> <4DFA08A5.3010608@weelya.com> <BANLkTi=JGeFmkYcwqQJ_xe=3CGrXwHxHPg@mail.gmail.com> <4DFA1173.9050509@weelya.com> <BANLkTi=LAiw+JvCOc3VPrXnmog7AkSWwCw@mail.gmail.com>
In-Reply-To: <BANLkTi=LAiw+JvCOc3VPrXnmog7AkSWwCw@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Websocket: two protocols into one, and Internet rules broken
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, 16 Jun 2011 14:40:53 -0000

Le 16/06/2011 16:28, Iñaki Baz Castillo a écrit :
> 2011/6/16 Anthony Catel<a.catel@weelya.com>:
>> I mean, it the browser can open a "raw" TCP connection and implement any
>> kind of protocol.
>> This must lead to a prompt "Do you allow your browser to open a connection
>> to xxxx:xxx?" which I think it's not suitable for user experience.
> I never said that a web browser should allow opening any kind of
> communication with a remote server :)
>
> I just said that, if it's standarized, why not to allow a web browser
> to directly speak other protocols as SIP or XMPP? I don't mean raw
> speaking such protocol from JavaScript or whatever, that should be not
> allowed as per security reasons. I mean that web browsers could
> implement a SIP and/or XMPP client and provide an API (i.e. for
> JavaScript) to use it (the very same as WebSocket proposes). Security
> would be built-in within the browser implementation.
>
> PS: I don't want web browsers implementing SIP or XMPP, it was just an
> example ;)
>

Nobody said that one day a vendor isn't going to implement a wide 
deployed protocol.
But for now, I think that WebSocket is a good choice to stop the cancer 
of "long polling"
and other ugly hacks (which is what I do).

Also, WebSocket is more or less a generic protocol where you can 
encapsulate other protocol
without having to deal boring things like Origin security, 
proxy/firewall traversal, etc...