svn commit: samba r3059 - in branches/SAMBA_4_0/source/smb_server: .

tridge at samba.org tridge at samba.org
Tue Oct 19 07:18:56 GMT 2004


Author: tridge
Date: 2004-10-19 07:18:56 +0000 (Tue, 19 Oct 2004)
New Revision: 3059

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/smb_server&rev=3059&nolog=1

Log:
completely get rid of the MAX_CONNECTIONS limit, as a idle tree
connect is very cheap now.

Modified:
   branches/SAMBA_4_0/source/smb_server/conn.c


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/conn.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/conn.c	2004-10-19 07:10:56 UTC (rev 3058)
+++ branches/SAMBA_4_0/source/smb_server/conn.c	2004-10-19 07:18:56 UTC (rev 3059)
@@ -21,12 +21,6 @@
 
 #include "includes.h"
 
-/* set these to define the limits of the server. NOTE These are on a
-   per-client basis. Thus any one machine can't connect to more than
-   MAX_CONNECTIONS services, but any number of machines may connect at
-   one time. */
-#define MAX_CONNECTIONS 1024
-
 /****************************************************************************
 init the tcon structures
 ****************************************************************************/
@@ -65,7 +59,7 @@
 	tcon = talloc_zero_p(smb_conn, struct smbsrv_tcon);
 	if (!tcon) return NULL;
 
-	i = idr_get_new(smb_conn->tree.idtree_tid, tcon, MAX_CONNECTIONS);	
+	i = idr_get_new(smb_conn->tree.idtree_tid, tcon, 0x10000);	
 	if (i == -1) {
 		DEBUG(1,("ERROR! Out of connection structures\n"));	       
 		return NULL;



More information about the samba-cvs mailing list