printing, locking, etc in 2.2.0

Jeremy Allison jeremy at valinux.com
Wed May 23 19:35:03 GMT 2001


Andrew Bartlett wrote:
> 
> My installation of last nights CVS, plus my pam patch (irrelevent for
> this particular code path) also shows:
> 
> May 23 09:44:42 jessie smbd[15437]: art14 (192.168.29.10) closed
> connection to service webbc
> May 23 09:44:42 jessie smbd[15417]: too many connections - rejected
> 
> My theroy is that process 15437 is locking at least part of
> connections.tdb, and that this code in connections.c:claim_connection()
> is then failing:
> 
>         if (tdb_store(tdb, kbuf, dbuf, TDB_REPLACE) != 0)
>                 ret = False;
> 
> Can this happen?  Should it be fixed?  Note that we have never had
> connection limits at our site.  In any case, it has only happend once
> (that I have seen), and is certainly not critical.

Hmmm. That's a concern. I've checked over the code, and
the tdb_store should block until it gets a lock, even if
it's in competition with another smbd.

I've added some tdb_errstr() calls to smbd/connection.c
so we can see what's going on if any tdb calls fail.

Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list