[jdev] parsing xml (xmpp) with ruby

Peter Saint-Andre stpeter at stpeter.im
Mon Sep 29 11:27:45 CDT 2008


Andreas Monitzer wrote:
> On Sep 29, 2008, at 17:44, Eric Will wrote:
> 
>> My question is this: how often could this happen, TODAY? In all the
>> years I wrote IRC programs, I can't recall EVER getting a partial-
>> line, and in my two years of messing with XMPP, I can't recall EVER
>> getting a broken stanza.
> 
> Don't forget that stanzas don't have a size limit, unlike IRC lines.  
> Especially a roster (for example stpeter's) might be hundreds of kB in  
> size, same goes for a bob (http://www.xmpp.org/extensions/ 
> xep-0231.html), that's too much for a single TCP packet.

The recommended limit on BOB payloads is 4k -- much smaller than my
roster. :P

Other big packets can be user avatars and vCards with photos.

/psa

-- 
Peter Saint-Andre
https://stpeter.im/




More information about the JDev mailing list