[Standards] XEP-0124: terminate

Peter Saint-Andre stpeter at jabber.org
Tue May 29 22:06:11 UTC 2007

Peter Saint-Andre wrote:
> Someone just pinged me via IM about session termination in XEP-0124:
> http://www.xmpp.org/extensions/xep-0124.html#terminate
> In particular, the spec doesn't say what a CM should return to the 
> client if there are outstanding requests (e.g., the client could include 
> things in the terminate request and the CM might receive a response from 
> the server or network but have nowhere to send them). 

It seems that I misunderstood the person I was chatting with. He meant 
that there are outstanding HTTP requests, not that there are outstanding 
XMPP requests (this is at the BOSH level, not the level of XMPP). So 
let's say that in the current session the BOSH client is limited to two 
simultaneous requests (requests=2) and one held request (hold=1). Now 
assume that there is already one request on hold. The client sends a 
terminate request. Two questions arise:

1. Does the CM accept the terminate request (rather than returning an 
error because the client is over its number of held requests) or does it 
return an error?

2. If the CM accepts the terminate request, what does it do with the 
outstanding held request? Send it to /dev/null?

Aside from those questions, I do think that Section 13 of XEP-124 could 
use the example shown below.

> IMHO the CM should 
> simply return the empty <body/> informing the client that the HTTP 
> session is terminated, and it's up to the client to clean up. (If the 
> client wants responses, it shouldn't terminate.) Like so:
> Content-Type: text/xml; charset=utf-8
> Content-Length: 72
> <body type='terminate'
>       xmlns='http://jabber.org/protocol/httpbind'/>
> It may also be appropriate for the CM to inform the server that the 
> application-level session is over, too (the equivalent of XMPP 
> </stream:stream>), but what exactly the CM tells the server depends on 
> the application.
> So at the least I think we need to add this example to Section 13 of 
> XEP-0124.
> Peter

-------------- 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/20070529/555cb9d8/attachment.bin>

More information about the Standards mailing list