X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/851dbdb775e409cf9f55e51bd8e07139d2f8930b..0c515f17c44344813e8949fbb684b357ad70cfdf:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 32deee76..18d9494e 100644 --- a/clientserver.c +++ b/clientserver.c @@ -108,6 +108,11 @@ static int rsync_module(int fd, int i) return -1; } + if (!claim_connection(lp_lock_file(), lp_max_connections())) { + rprintf(FERROR,"ERROR: max connections reached\n"); + return -1; + } + rprintf(FINFO,"rsync on module %s from %s (%s)\n", lp_name(i), host, addr);