concurrency

Julien ÉLIE julien at trigofacile.com
Fri Sep 12 11:06:11 UTC 2014


Hi Nick,

> So far, inn working well, but I need to do two things, firstly, limit
> max user concurrency (8) at any given time, the closest I can find is
> running innd with -H -X which does not sound appropriate,

I believe you should do that with a Perl or Python auth hook.  This
feature has not been implemented in INN yet:
     https://inn.eyrie.org/trac/ticket/9

"nnrpd currently has no way of limiting connections per IP address
other than using the custom auth hooks. In its daemon mode, it could
in theory keep track of this and support throttling. It's probably
not worth trying to support this when invoked via inetd, since at
that point one could just use xinetd and its built-in support
for things like this.

When started from innd, this is a bit harder. innd has some basic
rate limiting stuff, but nothing for tracking number of simultaneous
connections over time. It may be fine to say that if you want to
use this feature, you need to have nnrpd be invoked separately,
not run from innd."



> secondly, setting a daily limit of 1G per user, and for that I can't
> see any references?

I don't see how you could do that with INN only.  Maybe other people
here may have ideas?

I am aware of a QUOTA NNTP command, at the state of draft:
     "draft-kleiner-adding-quota-command-to-nntp-00"
     http://permalink.gmane.org/gmane.ietf.nntp/3561
but it is not implemented in INN.

-- 
Julien


More information about the inn-workers mailing list