From 59323b9668d35f383707dac23901709591747fde Mon Sep 17 00:00:00 2001 From: Valery Yatsko Date: Wed, 2 Apr 2008 13:52:05 +0400 Subject: [PATCH] Reverting last commit --- src/listener.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/listener.c b/src/listener.c index f41f43bc..fb60384d 100644 --- a/src/listener.c +++ b/src/listener.c @@ -177,7 +177,7 @@ inetport(struct Listener *listener) get_listener_name(listener), errno); return 0; } - else if((rb_get_maxconnections() - 10) < rb_get_fd(F)) /* XXX this is kinda bogus*/ + else if((maxconnections - 10) < rb_get_fd(F)) /* XXX this is kinda bogus*/ { report_error("no more connections left for listener %s:%s", get_listener_name(listener), @@ -463,7 +463,7 @@ accept_precallback(rb_fde_t *F, struct sockaddr *addr, rb_socklen_t addrlen, voi return 0; } - if((rb_get_maxconnections() - 10) < rb_get_fd(F)) /* XXX this is kinda bogus */ + if((maxconnections - 10) < rb_get_fd(F)) /* XXX this is kinda bogus */ { ++ServerStats.is_ref; /*