summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2002-07-12 14:27:19 +0200
committerDavid Reid <dreid@apache.org>2002-07-12 14:27:19 +0200
commitf3478bd9611f99067378bbce47b229c9d943f65e (patch)
treec647351bad2c0588f8051e9c0087410e68f5a9cb /server
parentAdd XML declaration. (diff)
downloadapache2-f3478bd9611f99067378bbce47b229c9d943f65e.tar.xz
apache2-f3478bd9611f99067378bbce47b229c9d943f65e.zip
Adjust the sizes of the pollsets we create/use so that we work again.
With the poll change we seem to have improved performance. :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96030 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/mpm/beos/beos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/mpm/beos/beos.c b/server/mpm/beos/beos.c
index e07a7f14ba..5d457bd1e0 100644
--- a/server/mpm/beos/beos.c
+++ b/server/mpm/beos/beos.c
@@ -397,10 +397,10 @@ static int32 worker_thread(void * dummy)
(void) ap_update_child_status_from_indexes(0, child_slot, SERVER_STARTING,
(request_rec*)NULL);
- apr_poll_setup(&pollset, num_listening_sockets, tpool);
+ apr_poll_setup(&pollset, num_listening_sockets + 1, tpool);
for(n=0 ; n <= num_listening_sockets ; n++)
apr_poll_socket_add(pollset, listening_sockets[n], APR_POLLIN);
-
+
bucket_alloc = apr_bucket_alloc_create(tpool);
while (1) {
@@ -422,7 +422,7 @@ static int32 worker_thread(void * dummy)
apr_int16_t event;
apr_status_t ret;
- ret = apr_poll(pollset, num_listening_sockets, &srv, -1);
+ ret = apr_poll(pollset, num_listening_sockets + 1, &srv, -1);
if (ret != APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(ret)) {