summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/conn.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-19 07:18:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:01:55 -0500
commit24bba442bcc40dd4191e4040d76e0fd7e9e98f1b (patch)
treea47c43f34a6effe5ebfc2016ba0207d19d2daaa0 /source4/smb_server/conn.c
parent198be6fc777fa1cdd461beb55fe2c30544047177 (diff)
downloadsamba-24bba442bcc40dd4191e4040d76e0fd7e9e98f1b.tar.gz
samba-24bba442bcc40dd4191e4040d76e0fd7e9e98f1b.tar.xz
samba-24bba442bcc40dd4191e4040d76e0fd7e9e98f1b.zip
r3059: completely get rid of the MAX_CONNECTIONS limit, as a idle tree
connect is very cheap now. (This used to be commit 8856f010e96d2f20d349a51820f225a8493f6eef)
Diffstat (limited to 'source4/smb_server/conn.c')
-rw-r--r--source4/smb_server/conn.c8
1 files changed, 1 insertions, 7 deletions
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;