<div class="gmail_quote">On Thu, Mar 5, 2009 at 9:45 PM, Martijn van Beers <span dir="ltr"><<a href="mailto:martijn@eekeek.org">martijn@eekeek.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Hi, I thought I'd implement quickly implement compression since you so</div>
graciously offered a host to test against, but after succesfully<br>
negotiating TLS and receiving the new stream features, when I try to<br>
negotiate compression, I don't get anything back after I send <compress<br>
xmlns="<a href="http://jabber.org/features/compress" target="_blank">http://jabber.org/features/compress</a>"><method>zlib</method></compress><br>
</blockquote><div><br></div><div>I get this (on port 5222 and 5269):</div><div><br></div><div>s2c: <?xml version='1.0'?><stream:stream xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>' xmlns='jabber:{client,server}' from='<a href="http://darkskies.za.net">darkskies.za.net</a>' version='1.0' id='stream_id'><stream:features xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>'><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='<a href="http://jabber.org/features/compress">http://jabber.org/features/compress</a>'><method>zlib</method></compression><auth xmlns='<a href="http://jabber.org/features/iq-auth'/">http://jabber.org/features/iq-auth'/</a>></stream:features></div>
<div><br></div><div>c2s: <compress xmlns='<a href="http://jabber.org/protocol/compress">http://jabber.org/protocol/compress</a>'><method>zlib</method></compress></div><div><br></div><div>s2c: <compressed xmlns='<a href="http://jabber.org/protocol/compress'/">http://jabber.org/protocol/compress'/</a>></div>
<div><br></div><div>and then the compressed data starts</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">XEP 170 *does* say you should do sasl before compression, but shouldn't<br>
there be at least an error message and/or disconnect if you try to do it<br>
without sasl?<br></blockquote></div><div><br></div>correct, jabberd2 doesn't support sasl yet, and I couldn't figure out how to do it after dialback. I think part of the problem is that there's currently no re-announcement of features after dialback, so I couldn't figure out how to plumb it in. Also having to do dialback to debug is a pain - I can't figure out which order what stuff goes where, also jabberd2 tries to initiate the connection in the opposite direction in anticipation of a returning stanza.<br clear="all">
<br>-- <br>- Norman Rasmussen<br> - Email: <a href="mailto:norman@rasmussen.co.za">norman@rasmussen.co.za</a><br> - Home page: <a href="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</a><br>