[JDEV] does anyone knows how to disable Karma??
temas
temas at box5.net
Thu May 3 14:23:52 CDT 2001
Rate limitting is the connections per second from an ip, karma is the
amount of data you can read and process over a period of time.
--temas
On 03 May 2001 13:56:07 -0500, Dustin Puryear wrote:
> temas wrote:
> >
> > I thought that function only did rate limit checks, not karma?
>
> Well, whatever it does, I am no longer rate-limited.
>
> Regards, Dustin
>
> >
> > --temas
> >
> > On 03 May 2001 10:04:43 -0500, Dustin Puryear wrote:
> > > Dixon Canario wrote:
> > > >
> > > > Hi Dustin,
> > > >
> > > > Can I get your soluction please... can I get the code for that file or
> > > > just tell me what to fix so that I can solve that problem, too.
> > > >
> > > > oh and what you mean by: Short-Circuiting it!
> > > > Well help me man, this part is kicking my behind... :)
> > >
> > > Change jabberd/lib/rate.c:jlimit_check() to:
> > >
> > > int jlimit_check(jlimit r, char *key, int points)
> > > {
> > > int now = time(NULL);
> > >
> > > if(r == NULL) return 0;
> > >
> > > return 0;
> > > ...
> > >
> > > This seems to do the trick.
> > >
> > > Regards, Dustin
> > >
> > >
> > > >
> > > > Thanx,
> > > > Dixon
> > > >
> > > > -----Original Message-----
> > > > From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
> > > > Dustin Puryear
> > > > Sent: Wednesday, May 02, 2001 12:57 PM
> > > > To: jdev at jabber.org
> > > > Subject: Re: [JDEV] does anyone knows how to disable Karma??
> > > >
> > > > FYI, I ended up short-circuiting the karma code in
> > > > jabberd/lib/rate.c:jlimit_check(). Using <dec>0</dec> does not seem to
> > > > work.
> > > >
> > > > Regards, Dustin
> > > >
> > > > --
> > > > 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
> > > > _______________________________________________
> > > > jdev mailing list
> > > > jdev at jabber.org
> > > > http://mailman.jabber.org/listinfo/jdev
> > > >
> > > > _______________________________________________
> > > > jdev mailing list
> > > > jdev at jabber.org
> > > > http://mailman.jabber.org/listinfo/jdev
> > >
> > > --
> > > 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
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
>
> --
> 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
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list