summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/service.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-09-12 02:25:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:39 -0500
commit7cbd43a1f7fed869703ab93ae0eee8a180a91c74 (patch)
treeec0824ee8e3463dc57204a3da851d0e94eb40262 /source4/smb_server/service.c
parentac2f9cc96eb249cb3967bf862f9e28b62bf99e99 (diff)
downloadsamba-7cbd43a1f7fed869703ab93ae0eee8a180a91c74.tar.gz
samba-7cbd43a1f7fed869703ab93ae0eee8a180a91c74.tar.xz
samba-7cbd43a1f7fed869703ab93ae0eee8a180a91c74.zip
r2288: Remove the claim/yield connection code - this will need to be redone
in a more samba4 style at some point (along with the session code). Andrew Bartlett (This used to be commit b8fe29dc7ac6fc60e5171a29788ae56968c1098b)
Diffstat (limited to 'source4/smb_server/service.c')
-rw-r--r--source4/smb_server/service.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c
index 8741898a9c..e42b803690 100644
--- a/source4/smb_server/service.c
+++ b/source4/smb_server/service.c
@@ -172,16 +172,6 @@ static NTSTATUS make_connection_snum(struct smbsrv_request *req,
}
}
- /* check number of connections */
- if (!claim_connection(tcon,
- lp_servicename(SNUM(tcon)),
- lp_max_connections(SNUM(tcon)),
- False,0)) {
- DEBUG(1,("too many connections - rejected\n"));
- conn_free(req->smb_conn, tcon);
- return NT_STATUS_INSUFFICIENT_RESOURCES;
- }
-
/* init ntvfs function pointers */
status = ntvfs_init_connection(req);
if (!NT_STATUS_IS_OK(status)) {
@@ -261,8 +251,6 @@ void close_cnum(struct smbsrv_tcon *tcon)
DEBUG(3,("%s closed connection to service %s\n",
tcon->smb_conn->connection->socket->client_addr, lp_servicename(SNUM(tcon))));
- yield_connection(tcon, lp_servicename(SNUM(tcon)));
-
/* tell the ntvfs backend that we are disconnecting */
tcon->ntvfs_ops->disconnect(tcon);