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 44034] - mpm_winnt doesn't call monitor hook
Date Mon, 31 Dec 2007 06:04:54 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=44034>.
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=44034





------- Additional Comments From wrowe@apache.org  2007-12-30 22:04 -------
Interestingly, neither do BeOS, OS2 or the Event MPM's, because that hook
is entirely predicated on AP_MPM_WANT_WAIT_OR_TIMEOUT.

It appears that a minimal parent-process implementation would add

/* number of calls to wait_or_timeout between writable probes,
 * which means nothing other than monitor hook callbacks on win32
 */
#ifndef INTERVAL_OF_WRITABLE_PROBES
#define INTERVAL_OF_WRITABLE_PROBES 10
#endif

and replace

    rv = WaitForMultipleObjects(NUM_WAIT_HANDLES, (HANDLE *) event_handles,
FALSE, INFINITE);

with

    do {
        rv = WaitForMultipleObjects(NUM_WAIT_HANDLES, (HANDLE *) event_handles, 
                                    FALSE, SCOREBOARD_MAINTENANCE_INTERVAL 
                                             / INTERVAL_OF_WRITABLE_PROBES 
                                                 / 1000);

        ap_run_monitor(p);
    } while (rv == WAIT_TIMEOUT);

where mpm_winnt already defines SCOREBOARD_MAINTENANCE_INTERVAL as 1000000.


-- 
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