[jdev] Jabber message Maximum length
Michal vorner Vaner
michal.vaner at kdemail.net
Tue Aug 22 09:27:30 CDT 2006
On Tue, Aug 22, 2006 at 05:18:11PM +0300, Joonas Govenius wrote:
> On 8/22/06, Michal vorner Vaner <michal.vaner at kdemail.net> wrote:
> >The protocol itself does not limit the size, but allows servers to have
> >their own limits for protection reasons. It however says the protocol is
> >optimized for small stanzas. Recommended size is <4k for instant
> >messaging.
>
> Has anyone actually tested this? Also, what's not "instant messaging"?
>
> I had to resort to transfering images in a very similar way to IBB
> (JEP-0047) in my whiteboard solution. I'm encoding the image in base64
> and splitting the data over several messages if necessary. What
> fragment size would you recommend in this case? I could imagine
> sending a smallish, say 200KB, image in 4KB fragments causing much
> more load on the server than sending it in 50KB fragments for example.
> That's just my guess though. Does anyone know better?
>
If you read the XMPP-CORE, you will see it is possible to use to many
other things like distributed computing, gaming, whatever. It is not the
jabber as is known by user and usually is not used by people directly
and in that case you use different server, probably your own, where you
have different policies for stanza sizes.
Your whiteboarding is IM, since it uses the same servers.
About sending the image, I would recommend using something like stream
initiation (jep-0095), since you can open outbound stream which is much
less data consuming, and use inbound only when necessary. Because, if
you send that 200kB image, you will probably exceed not only the message
size (which you can solve by splitting it), but as well will get a karma
limit and you will be blocked for a while before the rest will be sent
out. Transfer of such image will take several seconds on most servers
out there. For example, default setup of ejabberd allows something like
7kB/s for a single user.
--
Hello, this is an extension to the famous signature virus, called spymail.
Could you please copy me into your signature and send back what you were
doing last night between 10pm and 3am?
Michal "vorner" Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20060822/a7a9300a/attachment-0002.pgp>
More information about the JDev
mailing list