From 7cbd43a1f7fed869703ab93ae0eee8a180a91c74 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 12 Sep 2004 02:25:58 +0000 Subject: 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) --- source4/smb_server/service.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source4/smb_server/service.c') 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); -- cgit