[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:
> 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.
How about splitting the data up into smaller chunks for transmission?
Someone suggested something like this for file transfer a couple of
Thomas Parslow (PatRat) ICQ #:26359483
Please leave quoted text in place when replying
More information about the JDev