[Standards-JIG] Closing idle streams

Peter Saint-Andre stpeter at jabber.org
Thu Jun 1 18:50:28 UTC 2006


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

Carlo v. Loesch wrote:
> Peter Saint-Andre typeth:
> | Can't a server send the following in the same TCP packet?
> | 
> |    <stream:error>
> |      <connection-timeout
> |          xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
> |    </stream:error>
> |    </stream:stream>
> | 
> 
> Unfortunately not, because a stream:error MUST be followed by
> the termination of the TCP connection (4.7.1 rule 1).

It seems more helpful to inform the other side why the stream is being
closed by sending a stream error, rather than sending </stream:stream>
and leaving the other side to wonder why the stream was closed. If that
is true, then it may make sense to relax the rule in 4.7.1 by decoupling
closing of the XML stream from termination of the TCP connection (i.e.,
I wonder if the text really needs to say "MUST close the XML stream and
SHOULD terminate the TCP connection"). Naturally we would need to think
carefully about the consequences of any such change.

Peter

- --
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEfzb0NF1RSzyt3NURAl3yAKDBmJ/HO7iyTLWA25jt6WJXt/cUsQCfU4RY
RC3GmBC0fwvETBVYznAX3Ok=
=n7LO
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3641 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20060601/a6cac145/attachment.bin>


More information about the Standards mailing list