fixing maxconnections -> rb_get_maxconnections()

This commit is contained in:
Valery Yatsko 2008-04-02 13:48:31 +04:00
parent c3a90b617f
commit 8125fe379f
1 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ inetport(struct Listener *listener)
get_listener_name(listener), errno);
return 0;
}
else if((maxconnections - 10) < rb_get_fd(F)) /* XXX this is kinda bogus*/
else if((rb_get_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((maxconnections - 10) < rb_get_fd(F)) /* XXX this is kinda bogus */
if((rb_get_maxconnections() - 10) < rb_get_fd(F)) /* XXX this is kinda bogus */
{
++ServerStats.is_ref;
/*