[JDEV] Setting karma to disabled

Dustin Puryear dpuryear at usa.net
Thu May 3 10:07:43 CDT 2001


> "Harold E. Gottschalk Jr." wrote:
> 
> Dustin,
> I spent most of my day looking through the jabberd code and found some
> code that was misleading mio.c that I will present later after I come
> up with a fix.
> 
> If you set the following you will disable karma, go to the service c2s
> and set the <dec> to zero there.

Odd. I have the following and I still get rate-limited when I remove my
"fix" to rate.c:

 <service id="c2s">
    <load>
      <pthsock_client>./pthsock/pthsock_client.so</pthsock_client>
    </load>
    <pthcsock xmlns='jabber:config:pth-csock'>
      <authtime/>
    <karma>
      <heartbeat>2</heartbeat>
      <init>1024</init>
      <max>4096</max>
      <inc>6</inc>
      <dec>0</dec>
      <penalty>0</penalty>
      <restore>1024</restore>
    </karma>

Regards, Dustin


> 
>   <service id="c2s">
>     <load>
>       <pthsock_client>./pthsock/pthsock_client.so</pthsock_client>
>     </load>
>     <pthcsock xmlns='jabber:config:pth-csock'>
>       <authtime/>
>       <karma>
>         <init>10</init>
>         <max>10</max>
>         <inc>1</inc>
>         <dec>0</dec>
>         <penalty>-6</penalty>
>         <restore>10</restore>
>       </karma>
> 
> I did this and it worked for me.  If it does not work then I might
> have fixed something in mio.c that made it work.  But the hacks I did
> there did not make it work unil I played with the above karma.  I
> played with the karma in <io> to no avail.
> 
> I hope this helps you out.
> 
> heg
> 
> "If at first the idea is not absurd, then there is no hope for it." -
> Albert Einstein
> 
> 

-- 
Dustin Puryear <dpuryear at usa.net>
http://members.telocity.com/~dpuryear
In the beginning the Universe was created. 
This has been widely regarded as a bad move. - Douglas Adams



More information about the JDev mailing list