tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r482098 - /tomcat/connectors/trunk/jk/native/common/jk_status.c
Date Mon, 04 Dec 2006 07:54:41 GMT
Author: mturk
Date: Sun Dec  3 23:54:39 2006
New Revision: 482098

URL: http://svn.apache.org/viewvc?view=rev&rev=482098
Log:
Make default 3 seconds refresh delay compile time configurable.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_status.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?view=diff&rev=482098&r1=482097&r2=482098
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Sun Dec  3 23:54:39 2006
@@ -135,6 +135,7 @@
 #define JK_STATUS_MASK_GOOD_DEF            0x0000000F
 #define JK_STATUS_MASK_BAD_DEF             0x00FF1010
 
+#define JK_STATUS_REFRESH                  "3"
 #define JK_STATUS_ESC_CHARS                ("<>?&")
 
 #define JK_STATUS_HEAD                     "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
@@ -3044,12 +3045,14 @@
             /* unlock the shared memory */
             jk_shm_unlock();
             if (mime == JK_STATUS_MIME_HTML) {
-                jk_puts(s, "\n<meta http-equiv=\"Refresh\" content=\"3;url=");
+                jk_puts(s, "\n<meta http-equiv=\"Refresh\" content=\""
+                        JK_STATUS_REFRESH ";url=");
                 status_write_uri(s, NULL, from, 0, 0, refresh,
                                 worker, NULL, option);
                 jk_puts(s, "\">");
                 if (!err) {
-                    jk_putv(s, "<p><b>Result: OK - You will be redirected in
3 seconds.</b><p/>", NULL);
+                    jk_puts(s, "<p><b>Result: OK - You will be redirected in
"
+                            JK_STATUS_REFRESH " seconds.</b><p/>");
                 }
             }
         }
@@ -3062,12 +3065,14 @@
             /* unlock the shared memory */
             jk_shm_unlock();
             if (mime == JK_STATUS_MIME_HTML) {
-                jk_puts(s, "\n<meta http-equiv=\"Refresh\" content=\"3;url=");
+                jk_puts(s, "\n<meta http-equiv=\"Refresh\" content=\""
+                        JK_STATUS_REFRESH ";url=");
                 status_write_uri(s, NULL, from, 0, 0, refresh,
                                  worker, NULL, option);
                 jk_puts(s, "\">");
                 if (!err) {
-                    jk_putv(s, "<p><b>Result: OK - You will be redirected in
3 seconds.</b><p/>", NULL);
+                    jk_puts(s, "<p><b>Result: OK - You will be redirected in
"
+                            JK_STATUS_REFRESH " seconds.</b><p/>");
                 }
             }
         }



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


Mime
View raw message