[Samba] IPC$ entries not deleted from connections.tdb? [OK]

Yannick Bergeron burgergold at hotmail.com
Wed Apr 27 13:58:54 GMT 2005

Hi Jeremy,

I've applied the patch and rebuild samba-3.0.11. The results are pretty good 
as the connections.tdb file is clean and the smbstatus output seems to be 

I've set the debug level to 10 and the real problem has been corrected by 
this part, since I'd this debug message in my log file very often

@@ -575,6 +575,7 @@
	if (!change_to_user(conn, conn->vuid)) {
		/* No point continuing if they fail the basic checks */
		DEBUG(0,("Can't become connected user!\n"));
+		yield_connection(conn, lp_servicename(snum));
		return NULL;

Thanx again for your help

>From: Jeremy Allison <jra at samba.org>
>Reply-To: Jeremy Allison <jra at samba.org>
>To: Yannick Bergeron <burgergold at hotmail.com>
>CC: abartlet at samba.org, samba at samba.org
>Subject: Re: [Samba] IPC$ entries not deleted from connections.tdb?
>Date: Tue, 26 Apr 2005 16:51:33 -0700
>On Tue, Apr 26, 2005 at 03:33:11PM -0400, Yannick Bergeron wrote:
> > Hi Andrew,
> >
> > I know that you're a very busy guy, but I've CC you on this post a few 
> > ago and didn't get any answer.
> >
> > http://lists.samba.org/archive/samba-technical/2005-April/040377.html
> > http://lists.samba.org/archive/samba-technical/2005-April/040378.html
> > http://lists.samba.org/archive/samba-technical/2005-April/040379.html
> > http://lists.samba.org/archive/samba/2005-April/104135.html
> >
> > I would like to have your impression on this problem or if you can
> > reproduce it.
> >
> > I would be really surprised if I was the only one who has it. The
> > difference is that we're using samba with a lots of users and we've
> > estimated that the file will grow at least 55mb per month. This if for a
> > smbd child that make only one connection. It could be like 20 times 
> > (1.1gb) if each smbd child owns 20 connections.
>There were some codepaths in smbd/service.c that didn't call 
>on an error. But they would only occur in an error case. Do you have any of 
>in you smbd logs ?
>Anyway, here is a patch to ensure yield_connection() is always called on 
>(and also a tidyup of some extraneous macro calls).
><< look >>

More information about the samba mailing list