]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mpm_event,mpm_worker: Comment about pollset sizing when APR_POLLSET_WAKEABLE.
authorYann Ylavic <ylavic@apache.org>
Fri, 12 Apr 2024 13:16:40 +0000 (13:16 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 12 Apr 2024 13:16:40 +0000 (13:16 +0000)
Follow up to r1916925 and r1916926.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916929 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c
server/mpm/worker/worker.c

index 372b94f61b4c87206c24888dc64325f169c3ceb2..0a11046b86c09bcbfca538d8b6b84c6fdd2d3f1e 100644 (file)
@@ -2628,7 +2628,10 @@ static void setup_threads_runtime(void)
         clean_child_exit(APEXIT_CHILDFATAL);
     }
 
-    /* Create the main pollset */
+    /* Create the main pollset. When APR_POLLSET_WAKEABLE is asked we account
+     * for the wakeup pipe explicitely with pollset_size+1 because some pollset
+     * implementations don't do it implicitely in APR.
+     */
     pollset_flags = APR_POLLSET_THREADSAFE | APR_POLLSET_NOCOPY |
                     APR_POLLSET_WAKEABLE | APR_POLLSET_NODEFAULT;
     for (i = 0; i < sizeof(good_methods) / sizeof(good_methods[0]); i++) {
index 2d1061f5cfcceea54952de5f16e677edd6f06200..42b81a8ed1b077b87d0a27ddb6089b8d844c291e 100644 (file)
@@ -909,7 +909,10 @@ static void setup_threads_runtime(void)
         clean_child_exit(APEXIT_CHILDFATAL);
     }
 
-    /* Create the main pollset */
+    /* Create the main pollset. When APR_POLLSET_WAKEABLE is asked we account
+     * for the wakeup pipe explicitely with num_listensocks+1 because some
+     * pollset implementations don't do it implicitely in APR.
+     */
     pollset_flags = APR_POLLSET_NOCOPY | APR_POLLSET_WAKEABLE;
     rv = apr_pollset_create(&worker_pollset, num_listensocks + 1, pruntime,
                             pollset_flags);