[JDEV] Karma and transferring large XML message packets...

Peter Sparago peter.sparago at snet.net
Sun Apr 22 08:46:42 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20010422/05b7162b/attachment-0002.htm>


More information about the JDev mailing list