never look at the completion event itself. Could be part of the zone
alarm mischief. Note also that waiting on two events is better than
waking every few minutes. Factoring out max_requests_per_child_hit
or whatever that event name is will help here.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96305
13f79535-47bb-0310-9956-
ffa450edef68
continue;
}
- /* Wait for pending i/o. Wake up once per second to check for shutdown */
+ /* Wait for pending i/o.
+ * Wake up once per second to check for shutdown .
+ * XXX: We should be waiting on exit_event instead of polling
+ */
while (1) {
rv = WaitForSingleObject(context->Overlapped.hEvent, 1000);
if (rv == WAIT_OBJECT_0) {
- if (!GetOverlappedResult(context->Overlapped.hEvent,
+ if (!GetOverlappedResult(context->accept_socket,
&context->Overlapped,
&BytesRead, FALSE)) {
ap_log_error(APLOG_MARK,APLOG_WARNING, GetLastError(), ap_server_conf,