[Standards] stream errors in 206
Peter Saint-Andre
stpeter at jabber.org
Mon Apr 30 13:16:17 CDT 2007
Mridul Muralidharan wrote:
> Hi,
>
> Any particular reason why stream error's cant be the usual stream
> error stanza (with a body attribute of type terminate) ?
> If there are stanza's pending on the gateway, this makes it mandatory to
> wait for all other stanza's to be pushed out before sending the
> streamerror in a subsequent response.
>
> It would be better to just set type=terminate, and have the xmpp
> streamerror as the last child of body xml.
So for example instead of this:
<body condition='remote-stream-error'
type='terminate'
xmlns='http://jabber.org/protocol/httpbind'>
<xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
<text xmlns='urn:ietf:params:xml:ns:xmpp-streams'
xml:lang='en'>
Some special application diagnostic information!
</text>
<escape-your-data xmlns='application-ns'/>
</body>
We'd have this:
<body condition='remote-stream-error'
type='terminate'
xmlns='http://jabber.org/protocol/httpbind'>
<stream:error>
<xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
<text xmlns='urn:ietf:params:xml:ns:xmpp-streams'
xml:lang='en'>
Some special application diagnostic information!
</text>
<escape-your-data xmlns='application-ns'/>
</stream:error>
</body>
No objections here.
Ian, what do you think?
Peter
--
Peter Saint-Andre
XMPP Standards Foundation
http://www.xmpp.org/xsf/people/stpeter.shtml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/standards/attachments/20070430/e2e994ff/smime.bin
More information about the Standards
mailing list