From: Jeff Trawick Date: Sat, 22 Dec 2001 23:53:49 +0000 (+0000) Subject: fix a nasty bug which periodically led to segfaults trying to X-Git-Tag: 2.0.30~147 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e1d27201278216b1ddded39b6842fb0a53f27b2f;p=thirdparty%2Fapache%2Fhttpd.git fix a nasty bug which periodically led to segfaults trying to access the scoreboard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92579 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index b3cd5cde8b7..8519e6f6539 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -552,7 +552,7 @@ static void process_socket(apr_pool_t *p, apr_socket_t *sock, long conn_id) ap_sock_disable_nagle(sock); } - ap_create_sb_handle(&sbh, p, conn_id / HARD_SERVER_LIMIT, thread_num); + ap_create_sb_handle(&sbh, p, conn_id / HARD_THREAD_LIMIT, thread_num); current_conn = ap_run_create_connection(p, ap_server_conf, sock, conn_id, sbh); if (current_conn) { ap_process_connection(current_conn); diff --git a/server/mpm/perchild/perchild.c b/server/mpm/perchild/perchild.c index b3cd5cde8b7..8519e6f6539 100644 --- a/server/mpm/perchild/perchild.c +++ b/server/mpm/perchild/perchild.c @@ -552,7 +552,7 @@ static void process_socket(apr_pool_t *p, apr_socket_t *sock, long conn_id) ap_sock_disable_nagle(sock); } - ap_create_sb_handle(&sbh, p, conn_id / HARD_SERVER_LIMIT, thread_num); + ap_create_sb_handle(&sbh, p, conn_id / HARD_THREAD_LIMIT, thread_num); current_conn = ap_run_create_connection(p, ap_server_conf, sock, conn_id, sbh); if (current_conn) { ap_process_connection(current_conn);