[standards-jig] Thoughts on JEP-0025

Matthias Wimmer m at tthias.net
Sat Jun 8 10:11:29 UTC 2002


Hi!

I wrote:

> An example how this could look like:
>
> <?xml version="1.0"?>
> <jabberpolling xmlns="http://jabber.org/jabberpolling">
>    <!-- show that we support the old JEP-0025 protocol -->
>    <traditional-jep-0025/>
>
>    <!-- show that we support the new extendable polling protocol -->
>    <extendable-polling version="1.0">
>        <!-- we support SHA magics to protect the pollings -->
>        <sha1-magics/>
>        <!-- we support destination addressing -->
>        <service-addressing>
>            <!-- the destionations we offer -->
>            <jabberc2s host="jabber.org"/>
>            <jabberc2s-ssl host="jabber.org"/>
>        </service-addressing>
>    </extendable-polling>
>
>    <!-- maybe other polling protocols we support -->
> </jabberpolling> 

Note: Unknown tags (and their descendants) should be ignored by the 
polling client.

I added the <service-addressing/> thing to support connecting to the SSL 
port of the server. I think it's better so connect to the SSL port then 
to use SSL to transfer the HTTP requests. Setting up a new SSL context 
with every HTTP requests (every some seconds) is much more expensive 
then to use SSL over the virtual connection.
But in my post I forgot to add information in the requests to select the 
destination. Therefore I propose to add an id-attribute to the tags 
within <service-addressing/>

<service-addressing>
    <jabberc2s host="jabber.org" id="jab"/>
    <jabberc2s-ssl host="jabber.org" id="jabssl"/>
</service-addressing>

> initial request:
> ,EXT 1.0,C 0,N ae01d95cd6f28b1c9873708892714696810d866d,,<?xml 
> version="1.0"?><stream:stream to="jabber.org" xmlns="..... 

Then in the initial request I can select the destination. If I don't do 
this I get the default (first destination):

initial request:
,EXT 1.0,DEST jabssl,C 0,N 
ae01d95cd6f28b1c9873708892714696810d866d,,<?xml 
version="1.0"?><stream:stream to="jabber.org" xmlns=".....


Tot kijk
    Matthias

-- 
Fon: +49-700 77007770		http://matthias-wimmer.de/
Fax: +49-89 312 88654		jabber://mawis@charente.de






More information about the Standards mailing list