diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-27 16:34:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:51 -0500 |
commit | 14e25f10d6a3da34fb8b29c4331571efa11ee3b8 (patch) | |
tree | 7369abad85080ebb67627e264bfe00a7b3777f0c /source3/smbd/connection.c | |
parent | f3c477c631e7318ccaa6f277731b721a462112b8 (diff) | |
download | samba-14e25f10d6a3da34fb8b29c4331571efa11ee3b8.tar.gz samba-14e25f10d6a3da34fb8b29c4331571efa11ee3b8.tar.xz samba-14e25f10d6a3da34fb8b29c4331571efa11ee3b8.zip |
r23168: Move the lp_max_connections() into service.c.
(This used to be commit 4afe37d431b6eb475769a2057025da9aa8d1bb14)
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r-- | source3/smbd/connection.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index 1069f95ed83..3e4a8a858b5 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -167,7 +167,7 @@ int count_all_current_connections(void) ****************************************************************************/ BOOL claim_connection(connection_struct *conn, const char *name, - int max_connections, uint32 msg_flags) + uint32 msg_flags) { struct connections_key key; struct connections_data crec; @@ -178,23 +178,7 @@ BOOL claim_connection(connection_struct *conn, const char *name, return False; } - /* - * Enforce the max connections parameter. - */ - - if (max_connections > 0) { - int curr_connections; - - curr_connections = count_current_connections( lp_servicename(SNUM(conn)), True ); - - if (curr_connections >= max_connections) { - DEBUG(1,("claim_connection: Max connections (%d) exceeded for %s\n", - max_connections, name )); - return False; - } - } - - DEBUG(5,("claiming %s %d\n",name,max_connections)); + DEBUG(5,("claiming %s\n",name)); make_conn_key(conn, name, &kbuf, &key); |