httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r428503 - /httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c
Date Thu, 03 Aug 2006 19:50:55 GMT
Author: jfclere
Date: Thu Aug  3 12:50:55 2006
New Revision: 428503

URL: http://svn.apache.org/viewvc?rev=428503&view=rev
Log:
Set the health to unknown when exiting so that httpd
could its retry logic.

Modified:
    httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c

Modified: httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c?rev=428503&r1=428502&r2=428503&view=diff
==============================================================================
--- httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c (original)
+++ httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c Thu Aug  3 12:50:55
2006
@@ -202,6 +202,16 @@
     }
     return APR_SUCCESS;
 }
+/*
+ * When stopping write health = unknown
+ */
+void markunknown_sharedmem(apr_pool_t *pool, int num)
+{
+    int n;
+
+    for (n = 0; n < num; n++)
+        worker_storage->set_health(n, HEALTH_UNKNOWN);
+}
 
 /*
  * main
@@ -309,6 +319,8 @@
         apr_pool_destroy(instance);
         /* If something goes really wrong we should clean all, via apr_pool_destroy(instance_socket)
*/
     }
+    if (instance_socket != NULL)
+        markunknown_sharedmem(instance_socket, num);
     if (interrupted) {
         apr_file_printf(errfile, "Monitoring aborted due to user "
                                  "request." APR_EOL_STR);



Mime
View raw message