svn commit: r410808 - /tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
Author: mturk Date: Thu Jun 1 02:25:44 2006 New Revision: 410808 URL: http://svn.apache.org/viewvc?rev=410808view=rev Log: Fix compile time warning by using proper value types. 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?rev=410808r1=410807r2=410808view=diff == --- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original) +++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Thu Jun 1 02:25:44 2006 @@ -53,9 +53,9 @@ /* Calculate the greatest common divisor of two positive integers */ -static int gcd(int a, int b) +static jk_uint64_t gcd(jk_uint64_t a, jk_uint64_t b) { -int r; +jk_uint64_t r; if (b a) { r = a; a = b; @@ -72,13 +72,13 @@ /* Calculate the smallest common multiple of two positive integers */ static jk_uint64_t scm(jk_uint64_t a, jk_uint64_t b) { -return a*b/gcd(a,b); +return a * b / gcd(a, b); } /* Update the load multipliers wrt. lb_factor */ void update_mult(lb_worker_t *p, jk_logger_t *l) { -int i = 0; +unsigned int i = 0; jk_uint64_t s = 1; JK_TRACE_ENTER(l); for (i = 0; i p-num_of_workers; i++) { @@ -100,7 +100,7 @@ */ void reset_lb_values(lb_worker_t *p, jk_logger_t *l) { -int i = 0; +unsigned int i = 0; JK_TRACE_ENTER(l); if (p-lbmethod != JK_LB_BYBUSYNESS) { for (i = 0; i p-num_of_workers; i++) { @@ -228,7 +228,7 @@ jk_uint64_t curmax, jk_logger_t *l) { -int i; +unsigned int i; time_t now = time(NULL); int elapsed; worker_record_t *w = NULL; @@ -268,7 +268,7 @@ int exponent, jk_logger_t *l) { -int i; +unsigned int i; jk_uint64_t curmax = 0; JK_TRACE_ENTER(l); if (p-lbmethod != JK_LB_BYBUSYNESS) { @@ -287,7 +287,7 @@ { unsigned int i = 0; jk_uint64_t curmax = 0; -int delta; +long delta; time_t now = time(NULL); JK_TRACE_ENTER(l); @@ -309,7 +309,7 @@ * Since it's possible that we come here a few milliseconds * before the interval has passed, we allow a little tolerance. */ -delta = difftime(now, lb-s-last_maintain_time) + JK_LB_MAINTAIN_TOLERANCE; +delta = (long)difftime(now, lb-s-last_maintain_time) + JK_LB_MAINTAIN_TOLERANCE; if (delta = lb-maintain_time) { lb-s-last_maintain_time = now; if (JK_IS_DEBUG_LEVEL(l)) @@ -427,7 +427,6 @@ const char *name, jk_logger_t *l) { -unsigned int i; int uses_domain = 0; worker_record_t *candidate = NULL; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dev@tomcat.apache.org
vielen Dank f - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dev@tomcat.apache.org
vielen Dank f - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dev@tomcat.apache.org
vielen Dank f - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dev@tomcat.apache.org
vielen Dank f - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dev@tomcat.apache.org
vielen Dank f - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dev@tomcat.apache.org
vielen Dank f - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dev@tomcat.apache.org
vielen Dank f - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 37044] - JAASRealm / RealmBase role checking bug ?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37044. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37044 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | --- Additional Comments From [EMAIL PROTECTED] 2006-06-01 09:49 --- This bug has not been fixed. Source code of class JAASRealm in version 5.5.12 is identical with source code in current version (5.5.17). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 37044] - JAASRealm / RealmBase role checking bug ?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37044. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37044 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 38242] - StandardSession.invalidate() Session Already Invalidated; removeAttributeInternal JNDIManager
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=38242. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=38242 --- Additional Comments From [EMAIL PROTECTED] 2006-06-01 15:28 --- This an issue with UPortal not implementing the specification correctly. Many of their classes are implementing HttpSessionBindingListener when they should be implementing HttpSessionListener. See. http://www.ja-sig.org/issues/browse/UP-1524 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34107] - session already invalidated before valueUnbound() called
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34107. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34107 --- Additional Comments From [EMAIL PROTECTED] 2006-06-01 15:30 --- Duplicate bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38242 This is implemented properly. See above bug issue. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39699] New: - simple deploy failed in cluster (distributable flag)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39699. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39699 Summary: simple deploy failed in cluster (distributable flag) Product: Tomcat 5 Version: 5.5.17 Platform: Other OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Hi, i encounter a strange problem with my tomcat cluster and webapps deployment. server.xml Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ !-- Global JNDI resources -- GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector address=polen-integ port=8080 maxHttpHeaderSize=8192 maxThreads=300 minSpareThreads=25 maxSpareThreads=100 enableLookups=false acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 address=polen-integ.sofinco.fr minProcessors=20 maxProcessors=0 maxThreads=350 minSpareThreads=50 maxSpareThreads=100 enableLookups=false redirectPort=8080 protocol=AJP/1.3 disableUploadTimeout=true / Engine name=Catalina defaultHost=localhost jvmRoute=uxdev103 Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- Cluster Definition -- Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1 mcastClusterDomain=polen-integ mcastPort=45564 mcastFrequency=1000 mcastDropTime=3/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=polen-integ tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue doTransmitterProcessingStats=true doProcessingStats=false doWaitAckStats=false waitForAck=false keepAliveMaxRequestCount=-1/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; / Valve className=org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true / ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/home/tomcat/polen-integ/tmp/war-temp/ deployDir=${catalina.base}/webapps watchDir=/home/tomcat/polen-integ/tmp/war-listen/ watchEnabled=true/ /Cluster /Host /Engine /Service /Server when i am trying to deploy a 'dsitributable' (and only when this flag is enabled) i get the following errors : --- INFO ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Deploying web application archive po len.war INFO ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.loader.WebappClassLoader - Illegal
DO NOT REPLY [Bug 39699] - simple deploy failed in cluster (distributable flag)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39699. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39699 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2006-06-01 19:30 --- same here for me with 5.5.17 on Linux. Same setup on the webapp side used to work find in 5.5.12. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 37793] - org.apache.jasper.runtime.BodyContentImpl doesn't reset the 'cb' character array, causes memory leak
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37793. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37793 --- Additional Comments From [EMAIL PROTECTED] 2006-06-02 00:17 --- This bug resulted in a about 4 months' intermittent downtime on http://issues.apache.org/jira until we discovered this report. See: http://marc.theaimsgroup.com/?t=11467263645r=1w=2 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 37793] - org.apache.jasper.runtime.BodyContentImpl doesn't reset the 'cb' character array, causes memory leak
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37793. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37793 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39699] - simple deploy failed in cluster (distributable flag)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39699. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39699 --- Additional Comments From [EMAIL PROTECTED] 2006-06-02 05:48 --- (In reply to comment #1) same here for me with 5.5.17 on Linux. Same setup on the webapp side used to work find in 5.5.12. did you tried with 5.5.16 ? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]