You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2007/02/26 16:30:35 UTC

svn commit: r511854 - in /tomcat/tc6.0.x/trunk/java/org/apache: coyote/http11/Http11NioProtocol.java tomcat/util/net/NioEndpoint.java

Author: fhanik
Date: Mon Feb 26 07:30:34 2007
New Revision: 511854

URL: http://svn.apache.org/viewvc?view=rev&rev=511854
Log:
properties are getting stuck in the attributes list, and not making it down to the endpoint

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
    tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java?view=diff&rev=511854&r1=511853&r2=511854
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java Mon Feb 26 07:30:34 2007
@@ -95,6 +95,8 @@
     public void setProperty(String name, String value) {
         if ( name!=null && (name.startsWith("socket.") ||name.startsWith("selectorPool.")) ){
             ep.setProperty(name, value);
+        } else {
+            ep.setProperty(name,value); //make sure we at least try to set all properties
         }
         setAttribute(name, value);
     }

Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?view=diff&rev=511854&r1=511853&r2=511854
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Mon Feb 26 07:30:34 2007
@@ -438,6 +438,8 @@
                 IntrospectionUtils.setProperty(selectorPool, name.substring(selectorPoolName.length()), value);
             } else if (name.startsWith(socketName)) {
                 IntrospectionUtils.setProperty(socketProperties, name.substring(socketName.length()), value);
+            } else {
+                IntrospectionUtils.setProperty(this,name,value);
             }
         }catch ( Exception x ) {
             log.error("Unable to set attribute \""+name+"\" to \""+value+"\"",x);



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