You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/10/23 06:43:10 UTC

DO NOT REPLY [Bug 46069] New: default value of connection_ping_interval is wrong

https://issues.apache.org/bugzilla/show_bug.cgi?id=46069

           Summary: default value of connection_ping_interval is wrong
           Product: Tomcat Connectors
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mashmk02@gmail.com


In workers.xml, described as follows. 
-----
If directive connection_ping_interval was not set, the value of ping_timeout *
10 
will be used as connection_ping_interval value.
---

However, default value of connection_ping_interval is ping_timeout * 100.

ex)
Default value of ping_timeout is 10000ms(= 10 seconds).
If set ping_mode=I and not set connection_ping_interval in workers.properties, 
default value of connection_ping_interval is 1000 seconds(= ping_timeout *
100).

-----jk_ajp_common.c
2573:        if ((p->ping_mode & AJP_CPING_INTERVAL) &&
2574:            p->conn_ping_interval == 0)
2575:            p->conn_ping_interval = p->ping_timeout / 10;
---

regards.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 46069] default value of connection_ping_interval is wrong

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46069


Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Rainer Jung <ra...@kippdata.de>  2008-10-24 11:02:30 PST ---
Thanks for the report. We changed code and documentation so that the interval
is 10 times the time value of the timeout. Because timeout is in milliseconds
and interval in seconds, for the numerical values we get

  interval = timeout/1000 * 10 = timeout/100.

Closing as fixed, will be part of 1.2.27.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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