tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r701414 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
Date Fri, 03 Oct 2008 15:37:04 GMT
Author: rjung
Date: Fri Oct  3 08:37:04 2008
New Revision: 701414

URL: http://svn.apache.org/viewvc?rev=701414&view=rev
Log:
Only allow JkWatchdogInterval in global context.

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=701414&r1=701413&r2=701414&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Fri Oct  3 08:37:04 2008
@@ -1182,6 +1182,11 @@
 static const char *jk_set_watchdog_interval(cmd_parms * cmd,
                                             void *dummy, const char *watchdog_interval)
 {
+    const char *err_string = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+    if (err_string != NULL) {
+        return err_string;
+    }
+
 #if APR_HAS_THREADS
     jk_watchdog_interval = atoi(watchdog_interval);
     if (jk_watchdog_interval < 0) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message