[JDEV] Re: xml packet size

tailor tailor at v2tech.com
Tue Jun 3 20:29:58 CDT 2003


Larry Wright wrote:
> There is a karma setting for each server that drives this.
> 
> On Tuesday 03 June 2003 12:45 am, tailor wrote:
> 
>>I'm doing some expriments on jabberd1.4.2 and it seems that it will
>>disconnect the user when it receives a large xml packet. so what's that
>>limitation?
>>
>>tailor
>>
>>
>>_______________________________________________
>>jdev mailing list
>>jdev at jabber.org
>>http://mailman.jabber.org/listinfo/jdev
> 
I believe that karma is used to limit the data rate but it should never 
disconnect a connection.
The following is copied from karma part of standard jabber.xml.


     <!-- definition of terms:

       * Avg. Throughput - The number of bytes you can
         send every second without incuring any penalty.

       * Burst Allowed - The maximum number of bytes you
         can send in 2 seconds without incurring any penalty.

       * Max Sustained Rate - If you send data as fast as
         you can, you will hit penalty, and will not be
         able to send for 10 seconds; the max sustained
         rate is the average rate you can dump data when
         you are dumping as much data as you can, as fast
         as you can.

       * Seconds to Recover from Burst - The amount of time
         it will take to reach Avg. Throughput capability
         after sending a max burst of data.

       * Penalty Length - The length of your penalty is
         determined according to this formula:
               abs(penalty) * Heartbeat seconds
         E.g., a penalty of -5 and heartbeat of 2 will
         cause your penalty length to be 10 seconds.
         Note that a penalty CANNOT be less than -100,
         otherwise strange things might happen.

     -->





More information about the JDev mailing list