From 24bba442bcc40dd4191e4040d76e0fd7e9e98f1b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 19 Oct 2004 07:18:56 +0000 Subject: r3059: completely get rid of the MAX_CONNECTIONS limit, as a idle tree connect is very cheap now. (This used to be commit 8856f010e96d2f20d349a51820f225a8493f6eef) --- source4/smb_server/conn.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source4/smb_server/conn.c') diff --git a/source4/smb_server/conn.c b/source4/smb_server/conn.c index 78ecfec896..e85e050eeb 100644 --- a/source4/smb_server/conn.c +++ b/source4/smb_server/conn.c @@ -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 @@ struct smbsrv_tcon *conn_new(struct smbsrv_connection *smb_conn) 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; -- cgit