Re: [xmpp] WebSocket open/close

Jack Moffitt <jack@metajack.im> Mon, 02 December 2013 22:52 UTC

Return-Path: <metajack@gmail.com>
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 9E3EC1ADF46 for <xmpp@ietfa.amsl.com>; Mon, 2 Dec 2013 14:52:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=no
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 tBhdwXsmXEoe for <xmpp@ietfa.amsl.com>; Mon, 2 Dec 2013 14:52:29 -0800 (PST)
Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) by ietfa.amsl.com (Postfix) with ESMTP id 64BEE1ADDCA for <xmpp@ietf.org>; Mon, 2 Dec 2013 14:52:29 -0800 (PST)
Received: by mail-ob0-f179.google.com with SMTP id wm4so13403084obc.24 for <xmpp@ietf.org>; Mon, 02 Dec 2013 14:52:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=DBHwwgkKzyQV0CxTcRZK0taiI+VbZykdmrM79U3K34k=; b=NWcIpM+EjCcWtN4Mh3pHHop8TwuR0WKDu04OdgSr0lsEgQX3dSw6maWqlec1/3rl9i Tpzs2WNmyicprRuKOrTj0hEdKY48lDmAu2k70LH9B7USA9waisZ9DhI0/8fxL1Pcpg6o hv0QE67HwqFvvrGDurwEevEBamDik2pGEl3jjepwzs/6QWn7aaYeW3PAHnC1NPwTvw/g hcEIoNLQDVRnD9F3ft4Zq9FOw89T3pd32UC14m1UF+d53dmB8HMNvKuXnxpBuDwu+AQY K5Jr4fcipxjMwdBFOuSin9gXpcP9WLygafE7I3+3DHvVB5Q9o1sZlvCNkr5HsXZBQG7O xFQQ==
MIME-Version: 1.0
X-Received: by 10.60.99.71 with SMTP id eo7mr2727148oeb.61.1386024746816; Mon, 02 Dec 2013 14:52:26 -0800 (PST)
Sender: metajack@gmail.com
Received: by 10.60.17.70 with HTTP; Mon, 2 Dec 2013 14:52:26 -0800 (PST)
In-Reply-To: <529D0CB7.2090203@stpeter.im>
References: <529D0CB7.2090203@stpeter.im>
Date: Mon, 02 Dec 2013 15:52:26 -0700
X-Google-Sender-Auth: fgagPg0ZeTpRDr9SCFf_OlHIvTk
Message-ID: <CAP7VpsWP2DNq37UPKfB6C_qE4=Z6GJABS=FS3DCvbAuo2UOhpg@mail.gmail.com>
From: Jack Moffitt <jack@metajack.im>
To: Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: text/plain; charset="ISO-8859-1"
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 22:52:30 -0000

<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:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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
>
> - --
> Peter Saint-Andre
> https://stpeter.im/
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBAgAGBQJSnQy3AAoJEOoGpJErxa2pl8AP/1ojqiMTD1i1/OEbMVZuGzEi
> NbQjhqAujLKjPRxEBko5iQ2n2hpfbSIqrX1ZUm31kdQnc5GggQJFQuvvw4B1Afj5
> yrfEmHgeCfIRkvsPV39B/tihXCW5ozqQNy0bE/HpOqBSeSyPHOljQydYRu7o21Ad
> st5hf/3BYpZb6VHUsBgtWV1gooKLpeWKDMOjHclnVaYHd6jOWPqKzHa4R2EmnRSB
> JLqUjjjkm9Zxp5e2XRJQKxk/LPgr34cj8VXZf7yiKPd1eXSwdwEhwy3ESVG51cjL
> 5L1j2wxCy8ZcrB9CUmiNXAWzwQQrDkUWCQsf4+VqwCedZV3xBvzncKtMxrXuBvz8
> pzYbBXHnH6ZKBvhkTrlFsMidlk2DDwsVTjQpZkjwWuo4euc9W77s9QhoNWEH6fwB
> QV0FJ6V+I5x+H7OscjJwdoe5+zAmhSkZUtCzqfddMUu+o33AGaJtjvUaZeojFzB4
> x1nBVZCpXrs0vlXParekBzOZICQ810c6nlLTXRjbHNjQl23YASdj/f4vnHCKsKPN
> D5ilMlR4Zc5aqY9B3pvFrXuNDnBRnol/hpn5uHkp++Bp4uwRDikBT6EAFjBDN1xO
> C7MBlvdtGEFGqv7ykWrGjQ1OYwqtk1jrjEXYxfEov7h1e0F1YL6pfLHAd6uA5NhP
> Sjuwgtedh8Pk5LQbn1aJ
> =ncWw
> -----END PGP SIGNATURE-----
> _______________________________________________
> xmpp mailing list
> xmpp@ietf.org
> https://www.ietf.org/mailman/listinfo/xmpp