httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35485] - mpm worker unable to set default thread stack size
Date Thu, 23 Jun 2005 16:25:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35485>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35485





------- Additional Comments From trawick@apache.org  2005-06-23 18:25 -------
Try this quick and DIRTY patch in the interim:

Index: server/mpm/worker/worker.c
===================================================================
--- server/mpm/worker/worker.c  (revision 179865)
+++ server/mpm/worker/worker.c  (working copy)
@@ -1135,6 +1135,11 @@
     /* 0 means PTHREAD_CREATE_JOINABLE */
     apr_threadattr_detach_set(thread_attr, 0);
  
+    if (getenv("WORKER_STACKSIZE") != NULL) {
+        apr_threadattr_stacksize_set(thread_attr,
+                                     atoi(getenv("WORKER_STACKSIZE")));
+    }
+
     ts->threads = threads;
     ts->listener = NULL;
     ts->child_num_arg = child_num_arg;

(export WORKER_STACKSIZE=big-number)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message