[PATCH] Re: max connections not working like 2.0.7

Andrew Bartlett abartlet at pcug.org.au
Sun May 13 13:54:06 GMT 2001


Gerald Carter wrote:
> 
> On Sun, 13 May 2001, Andrew Bartlett wrote:
> 
> > This would limit the number of session setups, but not the number of
> > tree connects.  As such it would not preserve the semantics
> > completely, but might provide a solution for some sites when that is
> > what they wanted anyway.
> 
> Nope.  I think we going to have to find away to preserve this.
> It allows us a "poor man's software metering" system.

How about another tdb? :-)  Have a tdb that is indexed by service name,
and increment/decrement the number of connections when the connection is
claimed and yeilded. Whats more, we only need to do this when 'max
connections' is > 0, so performance isn't hit.  Finally, do a cleanup
occasionaly to walk the connections.tdb to check that the
maxconnections.tdb is correct.

> 
> Althought everyone esle seems to quiet.  Am I the only one who finds this
> useful?  My gut feeling is that if we posted this question on
> samba at samba.org, we would get enough of a response to push us to fix it.

This particuar fix doesn't look too painful/difficult, in any case.

Andrew Bartlett

-- 
Andrew Bartlett
abartlet at pcug.org.au




More information about the samba-technical mailing list