Grokbase
Topics Posts Groups | in
x
[ help ]

Rainer Jung (r...@apache.org)

Profile | Posts (5)
1) Rainer Jung Quality check mod_jk 1.2.26-dev
| +1 vote
Hi all, The next version of mod_jk is approaching its release. A code snapshot...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all,

The next version of mod_jk is approaching its release. A code snapshot
(revision 605168) is available at:

http://people.apache.org/~rjung/mod_jk-dev/

It is in the same format as a release download, so easy to build.
Under the same URL you can find the updated documentation.

It would be nice, if we could get some testing feedback from the
community. Feel free to post any observations.

Depending on your feedback we plan to tag the release at the end of the
week.

The most important changes are:

Features/Improvements
---------------------

- allow '*' for the worker name in exclusion rules
  (resp. JkUnMount) which will override all workers
- add new value "All" for JkMountCopy httpd directive
- enhance URI to worker map listing in status worker for Apache httpd.
  We now list maps for all virtual servers and not only the one,
  in which JKStatus itself was called.
- enhance URI to worker map listing.
  Update stale uriworkermap.properties immediately.
- remove trace logging from compiled code via new --disable-trace
  configure switch
- maintain idle connections in decreasing (LRU) slot order
- create JK_WORKER_ROUTE and JK_REQUEST_DURATION notes for httpd
  access log even if no JkRequestLogFormat is set
- cleanup init and destroy of server configuration for httpd
- remove global configuration items from per server configuration
- remove unused attributes secret_key and automount/JkAutoMount
- cleanup of jk_uri_worker_map
- some refactorings of jk_connect.c, jk_ajp_common.c, jk_lb_worker.c


Fixes
-----

- BZ 43229: Load balancer does not do fail over after reply timeouts.
- BZ 42038: Correct overlay of mounts and unmounts for IIS
- BZ 42003: Need to increase the maximum buffer size for HTTP
  header from 16k to 64k.
- BZ 43516: Memory leak for Apache httpd module of size 8KB
  for every virtual host without JK directive after each restart
- BZ 43873: Fix small memory leak occuring during httpd restart
- BZ 43647: Content-Type changes unexpectedly from text/html to
  text/pla (ingnore flush packets before we received the
  response headers)
- fixed crash during startup when using worker configuration
  inheritance (attribute "reference") and log level debug
- match header names exactly against pre defined constants
- repair detailed Apache httpd version display in jk status worker
- repair broken apxs auto-detection in configure
- correct parameter validation of JkStatusUpdateTask (jkstatus ant task)

Docs
----

- Small additions to JkShmFile documentation
- BZ 43684: Replace JkMountFile by JkMountFileReload in
  uriworkermap.properties docs


The full change log is available under:

http://people.apache.org/~rjung/mod_jk-dev/docs/miscellaneous/changelog.html

Thanks for your valuable time!

Regards,

Rainer


---------------------------------------------------------------------
To start a new topic, e-mail: [email protected: u...@tomcat.apache.org]
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
2) Rainer Jung [ANN] Apache Tomcat JK 1.2.25 Web Server Connector released
| +1 vote
The Apache Tomcat team is pleased to announce the immediate availability of version 1.2.25 of the...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
The Apache Tomcat team is pleased to announce the immediate availability
of version 1.2.25 of the Apache Tomcat Connectors.

It contains connectors, which allow a web server such as Apache HTTPD,
Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web
application server.

This version contains several enhancements and fixes a number of minor
bugs of the previous versions.

See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html
for a complete list of changes.

Source distribtions can be downloaded from an Apache Software Foundation
mirror at:

http://tomcat.apache.org/download-connectors.cgi

Binary distributions for a number of different operating systems and
web servers can be downloaded from an Apache Software Foundation mirror at:

http://tomcat.apache.org/download-connectors.cgi

Syncing the release to the download mirrors might take up to 48 hours.

Documentation for using Apache Tomcat Connectors can be found at:

http://tomcat.apache.org/connectors-doc/

Thank you,

-- The Apache Tomcat Team


---------------------------------------------------------------------
To start a new topic, e-mail: [email protected: u...@tomcat.apache.org]
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
3) Rainer Jung Quality check mod_jk 1.2.25-dev
| +1 vote
Hi all, unfortunately we had to withdraw mod_jk 1.2.24. It had a serious regression bug. To ensure...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all,

unfortunately we had to withdraw mod_jk 1.2.24. It had a serious
regression bug. To ensure the quality of the new 1.2.25 we invite you to
actively participate in testing.

A code snapshot (revision 562250) is available at:

http://people.apache.org/~rjung/mod_jk-dev/

It is in the same format as a release download, so easy to build.
Under the same URL you can find the updated documentation.

It would be really nice, if we could get some testing feedback from the
community. Feel free to post any observations.

Depending on your feedback we plan to tag the release next week.

The most important changes after 1.2.24 are:

- fix flushing regression bug
- fix behaviour of fail_on_status
- additional soft error mode for fail_on_status
- bug fixes for nsapi plugin (see changelog)

The full change log is available under:

http://people.apache.org/~rjung/mod_jk-dev/docs/miscellaneous/changelog.html

Thanks for your valuable time!

Regards,

Rainer



---------------------------------------------------------------------
To start a new topic, e-mail: [email protected: u...@tomcat.apache.org]
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
4) Rainer Jung [ANN] Withdrawal of Apache Tomcat JK 1.2.24 Web Server Connectors
| +1 vote
The Apache Tomcat team needs to withdraw release 1.2.24 of the Apache Tomcat Connectors. The...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
The Apache Tomcat team needs to withdraw release 1.2.24 of the Apache
Tomcat Connectors.

The release contains a bug that prevents the correct flushing of parts
of responses from the web server to the client. This might result in
unpredicted communication behaviour. We therefore have removed the
source and binary distributions from the origin server.

A fix for the problem has already been committed. We expect release of
version 1.2.25 in sometime next week.

We apologise for any inconvenience,

-- The Apache Tomcat Team





---------------------------------------------------------------------
To start a new topic, e-mail: [email protected: u...@tomcat.apache.org]
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
5) Rainer Jung [ANN] Apache Tomcat JK 1.2.24 Web Server Connector released
| +1 vote
The Apache Tomcat team is pleased to announce the immediate availability of version 1.2.24 of the...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
The Apache Tomcat team is pleased to announce the immediate availability
of version 1.2.24 of the Apache Tomcat Connectors.

It contains connectors, which allow a web server such as Apache HTTPD,
Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web
application server.

This version contains several enhancements and fixes a number of minor
bugs of the previous version 1.2.23.

See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html
for a complete list of changes.

Source distribtions can be downloaded from an Apache Software Foundation
mirror at:

http://tomcat.apache.org/download-connectors.cgi

Binary distributions for a number of different operating systems and
web servers can be downloaded from an Apache Software Foundation mirror at:

http://tomcat.apache.org/download-connectors.cgi

Documentation for using Apache Tomcat Connectors can be found at:

http://tomcat.apache.org/connectors-doc/

Thank you,

-- The Apache Tomcat Team





---------------------------------------------------------------------
To start a new topic, e-mail: [email protected: u...@tomcat.apache.org]
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
6) Rainer Jung Quality check mod_jk 1.2.24-dev
| +1 vote
Hi all, The next version of mod_jk is approaching its release. A code snapshot...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all,

The next version of mod_jk is approaching its release. A code snapshot
(revision 59730) is available at:

http://people.apache.org/~rjung/mod_jk-dev/

It is in the same format as a release download, so easy to build.
Under the same URL you can find the updated documentation.

It would be nice, if we could get some testing feedback from the
community. Feel free to post any observations.

Depending on your feedback we plan to tag the release at the end of the
week.

The most important changes are:

Features/Improvements
---------------------

- performance improvement in connection checking
- handle correctly up- and downloads bigger than 2GB
- Web servers: new default mode "ForwardURIProxy" for encoding the
forwarding URL. Combines safety and interoperability with mod_rewrite
and URL session encoding
- Security: new option RejectUnsafeURI resp. reject_unsafe to harden
against possibly malicious URLs
- Load Balancer: add configuration item max_reply_timeouts, to make lb
tolerant against occasional reply timeouts. Fully managed by status worker.
- Status Worker: rename worker status names by using OK/substatus and
ERR/substatus. Especially use OK/IDLE instead of N/A. Only display
change, no functional change.
- new recovery options for recovering idempotent HTTP methods HEAD and GET.
- Logging: milli- or microseconds timestamp

Fixes
-----

- always build with thread support, unless flag --enable-prefork is set
during for configure. Fixes builds on some platforms, e.g. AIX and Mac OS X.
- fixed a deadlock in lb worker, which was exposed on Solaris for
threaded Apache MPMs.
- interoperability with mod_rewrite
- various fixes for Apache on iSeries

Docs
----

- new HowTo about our various timeout settings
- correct documentation for worker attributes retries and
recovery_options and their meaning w.r.t the different worker types.
- clarify relation between worker names and jvmRoute for load balancing.
- IIS: Document auth_complete and uri_select.
- add comments on iSeries builds.

The full change log is available under:

http://people.apache.org/~rjung/mod_jk-dev/docs/miscellaneous/changelog.html

Thanks for your valuable time!

Regards,

Rainer


---------------------------------------------------------------------
To start a new topic, e-mail: [email protected: u...@tomcat.apache.org]
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
7) Rainer Jung svn commit: r552233 - in /tomcat/connectors/trunk/jk: native/common/jk_lb_worker.c xdocs/miscellaneous/changelog.xml
| +1 vote
Author: rjung Date: Sat Jun 30 19:40:02 2007 New Revision: 552233 URL:...
dev@tomcat.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Author: rjung
Date: Sat Jun 30 19:40:02 2007
New Revision: 552233

URL: http://svn.apache.org/viewvc?view=rev&rev=552233
Log:
Fix a deadlock in the load balancer.
jk_shm_lock for multi-threaded MPMs on *nix uses two locks,
a pthread mutex for thread locking in the local process and
a fcntl for cross process locking. On Solaris the fcntl will
sporadically return with EDEADLK (although there is none!).
We still need to call jk_shm_unlock in this case,
so that we unlock the posix mutex.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
    tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?view=diff&rev=552233&r1=552232&r2=552233
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sat Jun 30 19:40:02 2007
@@ -766,8 +766,6 @@
        jk_log(l, JK_LOG_ERROR,
               "locking failed (errno=%d)",
               errno);
-        JK_TRACE_EXIT(l);
-        return NULL;
     }
     if (sessionid) {
         char *session = sessionid;

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=552233&r1=552232&r2=552233
==============================================================================
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sat Jun 30 19:40:02 2007
@@ -27,6 +27,10 @@
   <br />
   <subsection name="Native">
     <changelog>
+      <fix>
+      Load Balancer: Fix a deadlock in lb worker, which was exposed on Solaris
+      for threaded Apache MPMs. (rjung)
+      </fix>
       <update>
       Logging: handle LWP IDs as 32 Bit unsigned. Try to make
       it work, although pthread IDs are opaque. (rjung)



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: dev-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: dev...@tomcat.apache.org]
8) Rainer Jung svn commit: r552231 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
| +1 vote
Author: rjung Date: Sat Jun 30 19:28:32 2007 New Revision: 552231 URL:...
dev@tomcat.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Author: rjung
Date: Sat Jun 30 19:28:32 2007
New Revision: 552231

URL: http://svn.apache.org/viewvc?view=rev&rev=552231
Log:
Minimize synchronized code path.

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?view=diff&rev=552231&r1=552230&r2=552231
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sat Jun 30 19:28:32 2007
@@ -2522,17 +2522,17 @@
         if (p->jklogfp) {
             apr_status_t rv;
             apr_size_t wrote;
+#if defined(WIN32)
+            what[used++] = '\r';
+#endif
+            what[used++] = '\n';
+            wrote = used;
             rv = apr_global_mutex_lock(jk_log_lock);
             if (rv != APR_SUCCESS) {
                 ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL,
                              "apr_global_mutex_lock(jk_log_lock) failed");
                 /* XXX: Maybe this should be fatal? */
             }
-#if defined(WIN32)
-            what[used++] = '\r';
-#endif
-            what[used++] = '\n';
-            wrote = used;
             rv = apr_file_write(p->jklogfp, what, &wrote);
             if (rv != APR_SUCCESS) {
                 char error[256];



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: dev-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: dev...@tomcat.apache.org]
9) Rainer Jung svn commit: r550530 - /tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
| +1 vote
Author: rjung Date: Mon Jun 25 09:04:31 2007 New Revision: 550530 URL:...
dev@tomcat.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Author: rjung
Date: Mon Jun 25 09:04:31 2007
New Revision: 550530

URL: http://svn.apache.org/viewvc?view=rev&rev=550530
Log:
Fix comparison between signed and unsigned type.
Uncritical here, because value of this config parameter
won't be negative or very large.

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

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?view=diff&rev=550530&r1=550529&r2=550530
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Mon Jun 25 09:04:31 2007
@@ -1094,7 +1094,7 @@
                         rec->s->reply_timeouts++;
                     }
                     if (service_stat != JK_REPLY_TIMEOUT ||
- rec->s->reply_timeouts > p->worker->s->max_reply_timeouts) {
+ rec->s->reply_timeouts > (unsigned)p->worker->s->max_reply_timeouts) {

                         /*
                         * Service failed !!!



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: dev-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: dev...@tomcat.apache.org]
10) Rainer Jung svn commit: r550277 - /tomcat/connectors/trunk/jk/native/common/portable.h.sample
| +1 vote
Author: rjung Date: Sun Jun 24 12:40:31 2007 New Revision: 550277 URL:...
dev@tomcat.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Author: rjung
Date: Sun Jun 24 12:40:31 2007
New Revision: 550277

URL: http://svn.apache.org/viewvc?view=rev&rev=550277
Log:
Small addition for r549224.

Modified:
    tomcat/connectors/trunk/jk/native/common/portable.h.sample

Modified: tomcat/connectors/trunk/jk/native/common/portable.h.sample
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/portable.h.sample?view=diff&rev=550277&r1=550276&r2=550277
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/portable.h.sample (original)
+++ tomcat/connectors/trunk/jk/native/common/portable.h.sample Sun Jun 24 12:40:31 2007
@@ -80,6 +80,9 @@
/* The size of `long long', as computed by sizeof. */
#define SIZEOF_LONG_LONG 8

+/* The size of pid_t */
+#define SIZEOF_PID_T 4
+
/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: dev-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: dev...@tomcat.apache.org]
11) Rainer Jung svn commit: r550275 - in /tomcat/connectors/trunk/jk: native/common/jk_mt.h native/common/jk_util.c xdocs/miscellaneous/changelog.xml
| +1 vote
Author: rjung Date: Sun Jun 24 12:00:08 2007 New Revision: 550275 URL:...
dev@tomcat.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Author: rjung
Date: Sun Jun 24 12:00:08 2007
New Revision: 550275

URL: http://svn.apache.org/viewvc?view=rev&rev=550275
Log:
Handle LWP IDs as 32 Bit unsigned.
Try to make it work, although pthread IDs are opaque.
Code basically borrowed from APR.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_mt.h
    tomcat/connectors/trunk/jk/native/common/jk_util.c
    tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_mt.h
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_mt.h?view=diff&rev=550275&r1=550274&r2=550275
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_mt.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_mt.h Sun Jun 24 12:00:08 2007
@@ -28,7 +28,7 @@


#if defined(WIN32)
-#define jk_gettid()    ((int)GetCurrentThreadId())
+#define jk_gettid()    ((jk_uint32_t)GetCurrentThreadId())
#elif defined(NETWARE) && !defined(__NOVELL_LIBC__)
 #define getpid()       ((int)GetThreadGroupID())
#endif
@@ -71,7 +71,7 @@
#define JK_LEAVE_CS(x, rc)\
             if(pthread_mutex_unlock(x))     rc = JK_FALSE; else rc = JK_TRUE

-int jk_gettid(void);
+jk_uint32_t jk_gettid(void);
#endif /* WIN32 */

#else /* !_MT_CODE */

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?view=diff&rev=550275&r1=550274&r2=550275
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Sun Jun 24 12:00:08 2007
@@ -499,7 +499,7 @@
             /* Performance is no issue, because with production log levels */
             /* we only call it often, if we have a lot of errors */
             rc = snprintf(&buf[used], usable_size - used,
- "[%" JK_PID_T_FMT ":%04d] ", getpid(), jk_gettid());
+ "[%" JK_PID_T_FMT ":%" JK_UINT32_T_FMT "] ", getpid(), jk_gettid());
             used += rc;
             if (rc < 0 || usable_size - used < 8) {
                 return 0;
@@ -1697,17 +1697,27 @@
}

#ifdef _MT_CODE_PTHREAD
-int jk_gettid()
+jk_uint32_t jk_gettid()
{
-    pthread_t t = pthread_self();
+    union {
+        pthread_t tid;
+        jk_uint64_t alignme;
+    } u;
+    u.tid = pthread_self();
#ifdef AS400
     /* OS400 use 64 bits ThreadId, get only low 32 bits for now */
     pthread_id_np_t       tid;
-    pthread_getunique_np(&t, &tid);
-    return ((int)(tid.intId.lo & 0xFFFFFFFF));
+    pthread_getunique_np(&(u.tid), &tid);
+    return ((jk_uint32_t)(tid.intId.lo & 0xFFFFFFFF));
#else
-    int tid = ((int)t) & 0xFFFF;
-    return tid;
+    switch(sizeof(pthread_t)) {
+    case sizeof(jk_uint32_t):
+        return *(jk_uint32_t *)&u.tid;
+    case sizeof(jk_uint64_t):
+        return (*(jk_uint64_t *)&u.tid) & 0xFFFFFFFF;
+    default:
+        return 0;
+    }
#endif /* AS400 */
}
#endif
@@ -1815,4 +1825,3 @@
}

#endif
-

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=550275&r1=550274&r2=550275
==============================================================================
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Jun 24 12:00:08 2007
@@ -28,6 +28,10 @@
   <subsection name="Native">
     <changelog>
       <update>
+      Logging: handle LWP IDs as 32 Bit unsigned. Try to make
+      it work, although pthread IDs are opaque. (rjung)
+      </update>
+      <update>
       JkStatus: Added manipulation of max_reply_timeouts. (rjung)
       </update>
       <update>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: dev-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: dev...@tomcat.apache.org]
12) Rainer Jung svn commit: r550273 - in /tomcat/connectors/trunk/jk: jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java xdocs/miscellaneous/changelog.xml
| +1 vote
Author: rjung Date: Sun Jun 24 11:37:53 2007 New Revision: 550273 URL:...
dev@tomcat.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Author: rjung
Date: Sun Jun 24 11:37:53 2007
New Revision: 550273

URL: http://svn.apache.org/viewvc?view=rev&rev=550273
Log:
Added manipulation of max_reply_timeouts to jkstatus.

Modified:
tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java
    tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java?view=diff&rev=550273&r1=550272&r2=550273
==============================================================================
--- tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java (original)
+++ tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java Sun Jun 24 11:37:53 2007
@@ -28,7 +28,7 @@
  * 
  * 
  * @author Peter Rossbach
- * @version $Revision:$
+ * @version $Revision$
  * @since mod_jk 1.2.20
  */
public class JkStatusUpdateLoadbalancerTask extends AbstractJkStatusTask {
@@ -51,6 +51,7 @@
    
     protected int lockCode = -1;
     protected String lock;
+    protected int maxReplyTimeouts = -1;

     /**
      * Return descriptive information about this implementation and the
@@ -199,9 +200,23 @@
  }

  /**
+  * @return the maxReplyTimeouts
+  */
+ public int getMaxReplyTimeouts() {
+  return maxReplyTimeouts;
+ }
+
+ /**
+  * @param maxReplyTimeouts the maxReplyTimeouts to set
+  */
+ public void setMaxReplyTimeouts(int maxReplyTimeouts) {
+  this.maxReplyTimeouts = maxReplyTimeouts;
+ }
+
+ /**
      * Create JkStatus worker update link
      * <ul>
- * </b>http://localhost/jkstatus?cmd=update&mime=txt&w=loadbalancer&lm=1&ll=1&lr=2<=60&ls=true&lf=false
+ * </b>http://localhost/jkstatus?cmd=update&mime=txt&w=loadbalancer&lm=1&ll=1&lr=2<=60&ls=true&lf=false&lx=0
      * <br/>
      *
      * 
@@ -215,6 +230,7 @@
      * <li><b>lt:<b/> recover wait timeout</li>
      * <li><b>ls:<b/> sticky session</li>
      * <li><b>lf:<b/> force sticky session</li>
+     * <li><b>lx:<b/> max reply timeouts</li>
      * </ul>
      * <ul>
      * <li>lm=1 or Requests</li>
@@ -268,6 +284,10 @@
      sb.append("&ll=");
      sb.append(lock);
     }
+   if (maxReplyTimeouts >= 0) {
+    sb.append("&lx=");
+    sb.append(maxReplyTimeouts);
+   }
             
         } catch (UnsupportedEncodingException e) {
             throw new BuildException("Invalid 'charset' attribute: "
@@ -284,4 +304,4 @@
             throw new BuildException("Must specify 'loadbalancer' attribute");
         }
     }
-}
\ No newline at end of file
+}

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=550273&r1=550272&r2=550273
==============================================================================
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Jun 24 11:37:53 2007
@@ -28,6 +28,9 @@
   <subsection name="Native">
     <changelog>
       <update>
+      JkStatus: Added manipulation of max_reply_timeouts. (rjung)
+      </update>
+      <update>
       LB, Status: Add feature max_reply_timeouts, to make lb tolerant against
       occasional long running requests. (rjung)
       </update>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: dev-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: dev...@tomcat.apache.org]
<