[JDEV] Karma and transferring large XML message packets...
Thomas Parslow (PatRat)
patrat at rat-software.com
Sun Apr 22 10:00:18 CDT 2001
> Hi All,
>
> I am fairly new to Jabber (since about Feb 1) but I must say, It ROCKS! I am designing a P2P system that uses Jabber as one of the information transports. In addition to normal chat messaging, we
> are using Jabber messaging to transfer large amounts of XML data (using an 'x' namespace) between Jabber users. The 'x' XML data will probably be in the 30K - 300K range. I am able to send a 6K
> packet without any trouble, the packet I am having trouble with is 60K.
>
> We are using Jabber 1.4.1. I've adjusted the Karma settings as follows:
>
> <karma>
> <heartbeat>2</heartbeat>
> <init>64</init>
> <max>64</max>
> <inc>6</inc>
> <dec>1</dec>
> <penalty>-3</penalty>
> <restore>64</restore>
> </karma>
>
>
> When I send the problem packet I get the following from Jabber:
>
> <stream:error xmlns="http://etherx.jabber.org/streams">Invalid XML</stream:error>
>
> And then I get the following Java program exception:
>
> Exception processing results: java.net.SocketException: Connection aborted by peer: socket write error
>
> I have checked the message packet that Jabber is complaining about by running the XML through a couple of different XML checkers. The XML (as far as I can tell) is valid. I'm assuming that this is
> may be some kind of burst or buffering error.
>
> I realize that I can transmit the XML out of band, but most of our users will be behind firewalls and therefore the OOB approach is not going to work for us.
>
> Any help would be greatly appreciated.
>
> peter
How about splitting the data up into smaller chunks for transmission?
Someone suggested something like this for file transfer a couple of
weeks ago...
Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying
More information about the JDev
mailing list