Re: [xmpp] WebSocket open/close

Peter Saint-Andre <stpeter@stpeter.im> Mon, 02 December 2013 23:02 UTC

Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@ietfa.amsl.com
Delivered-To: xmpp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EDC8A1ADF4E for <xmpp@ietfa.amsl.com>; Mon, 2 Dec 2013 15:02:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.903
X-Spam-Level:
X-Spam-Status: No, score=-1.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qp3sYljVGx50 for <xmpp@ietfa.amsl.com>; Mon, 2 Dec 2013 15:02:33 -0800 (PST)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id EDC671ADBCD for <xmpp@ietf.org>; Mon, 2 Dec 2013 15:02:32 -0800 (PST)
Received: from ergon.local (unknown [64.101.72.104]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 3AE254032A; Mon, 2 Dec 2013 16:02:30 -0700 (MST)
Message-ID: <529D1184.9080301@stpeter.im>
Date: Mon, 02 Dec 2013 16:02:28 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
MIME-Version: 1.0
To: Jack Moffitt <jack@metajack.im>
References: <529D0CB7.2090203@stpeter.im> <CAP7VpsWP2DNq37UPKfB6C_qE4=Z6GJABS=FS3DCvbAuo2UOhpg@mail.gmail.com>
In-Reply-To: <CAP7VpsWP2DNq37UPKfB6C_qE4=Z6GJABS=FS3DCvbAuo2UOhpg@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Cc: XMPP <xmpp@ietf.org>
Subject: Re: [xmpp] WebSocket open/close
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp/>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Dec 2013 23:02:35 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Right. We'll probably want to mandate the 'stream' prefix for ease of
regex matching, but we come close to doing that in RFC 6120 anyway.

On 12/2/13 3:52 PM, Jack Moffitt wrote:
> <stream:stream> and </stream:stream> can be treated as tokens and 
> don't require a streaming parser. The attributes are easily picked
> out in a regex. That's probably why we originally defined them that
> way even though it's unparseable as XML by JavaScript using the
> native parsers.
> 
> jack.
> 
> On Mon, Dec 2, 2013 at 3:41 PM, Peter Saint-Andre
> <stpeter@stpeter.im> wrote: As far as I can see, we didn't have
> agreement in the room at IETF 88 about the framing for stream open
> and close. Based on informal, offlist discussion since then, it
> seems that most current implementations send the RFC 6120
> <stream:stream> and </stream:stream> tags, and don't use something
> like specialized <open> and <close> elements. Unless folks on this
> list have concerns about the first approach, personally I'd be
> comfortable going with the running code. What do others think?
> 
> Peter
> 


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSnRGEAAoJEOoGpJErxa2pOGgP/iJRzo/dWwooV5YjAZl1iHjJ
FPDtdmlxi6VZ+22AuSpwqZlCJ5WQF77JkkMsATrCmX5xhD8oxZIJcjZS6MiR8Ivq
cc4GqnYcmh/Zlyg3c/gODbgue7zC4wPq2UjMYrIw7bKctqLrZ/3noX8nc+H58Lhj
TEMsGFd3NASqkEQuTLawdKJjDtTPgbz4LqNML6oMBGb7cLmNYE+dELWtryP0AsNi
lgK91Q+APlEFeFfIReIK6tgHpXMLlJQNQPv8Fwu92bz+dP/fLdb78rxs1i3SYiY3
z8FSYhqOdD256EQC7PJry1dqRGEQJZUMIOLDynPhJKlkalJQ8hGLGI3BsYyWqkGD
8mLrVHkH5McglvfA9WG3B5R6N37TxPE8lsQOkjf813HkQvGxyEtGpBtBJcj42+o6
TTVe6uMiVO2uVC8acaOeNBZOKcRTN1DRXDi1KiuCkvrN+p9KsufgtuX1zueW90/Y
UARugm/a/TzQxXnE3lcPDvwgq+OFA+J+04tocgyaZVsx2VAtV7aszNu+J6usCUit
A4eJCm3h0PioArZzWse1sY2RgI2yJkYjJtUe7tRT8UQJE0nWdZrSxGdoXYEWn8/A
iIUk3Ft01xspqqFCSzY5EsLH8zYfO2mWbALMyHY7mUKS4y74tdiLeJVQsrB7c3m1
kXu9qYwujyuDUrfzcMUU
=5HC2
-----END PGP SIGNATURE-----