From 4d1c47e3068b120ace38d42d30debca028c67f41 Mon Sep 17 00:00:00 2001 From: fhanik Date: Mon, 26 Feb 2007 15:30:34 +0000 Subject: [PATCH] properties are getting stuck in the attributes list, and not making it down to the endpoint git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@511854 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/http11/Http11NioProtocol.java | 2 ++ java/org/apache/tomcat/util/net/NioEndpoint.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/java/org/apache/coyote/http11/Http11NioProtocol.java b/java/org/apache/coyote/http11/Http11NioProtocol.java index 9d09cf949..6afddaeca 100644 --- a/java/org/apache/coyote/http11/Http11NioProtocol.java +++ b/java/org/apache/coyote/http11/Http11NioProtocol.java @@ -95,6 +95,8 @@ public class Http11NioProtocol implements ProtocolHandler, MBeanRegistration 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); } diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index ee76cc802..f88f36743 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -438,6 +438,8 @@ public class NioEndpoint { 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); -- 2.11.0