httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <>
Subject Re: [PATCH] Don't accept more connections than workers
Date Fri, 26 Apr 2002 18:18:58 GMT
On Fri, Apr 26, 2002 at 02:07:29PM -0400, Bill Stoddard wrote:
> This is a patch to worker.c to prevent more connections from being accepted than there
> workers to handle them.  The accept thread decrements the avail count and the workers
> increment the avail count.

How about using APR condition variables instead of yield()?  That was
how I was imagining implementing this.  The listener would block
until the queue is not full and then drop into the accept mutex
rotation.  I seem to remember something like this being in the
original worker code, but I don't recall.  -- justin

View raw message