Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 49375 invoked from network); 3 May 2005 18:14:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 18:14:55 -0000 Received: (qmail 16174 invoked by uid 500); 3 May 2005 17:36:19 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 16126 invoked by uid 500); 3 May 2005 17:36:18 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 16113 invoked by uid 99); 3 May 2005 17:36:17 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from objektpark.de (HELO p15122102.pureserver.info) (217.160.178.142) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 10:36:13 -0700 Received: from objektpark.de (dsl-082-083-061-202.arcor-ip.net [82.83.61.202]) by p15122102.pureserver.info (Postfix) with ESMTP id 31A383AC225 for ; Tue, 3 May 2005 19:33:59 +0200 (CEST) Message-ID: <4277B60D.9020200@objektpark.de> Date: Tue, 03 May 2005 19:34:05 +0200 From: Peter Rossbach User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.6) Gecko/20040113 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Code Submission - Wild Card Aliases References: <20050503163607.575BC20553@mail.mhsoftware.com> In-Reply-To: <20050503163607.575BC20553@mail.mhsoftware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey George, the Mapper is create inside Connector. I think we must setup the new Connector option before we start the MapperListener inside Connector.start() add connector and Mapper property enableAliasWildcardMatching at Connector o.a.c.connector.Connector L1076 if( this.domain != null ) { mapper.setEnableAliasWildcardMatching (this.enableAliasWildcardMatching ); mapperListener.setDomain( domain ); //mapperListener.setEngine( service.getContainer().getName() ); mapperListener.init(); ... } Peter George Sexton schrieb: >OK, if I'm hearing (almost everyone) the issues to address are: > >1) Sync getHosts() and getContextNames() >2) Figure out some sort of rate-limiting mechanism to limit DOS - >Perhaps this should be configurable with # 3 below. >3) Make wild card matching a configurable option. > >A question for Yoav - At what entity should this mapper option be set ? >Engine? Service? > >George Sexton >MH Software, Inc. >http://www.mhsoftware.com/ >Voice: 303 438 9585 > > > > >>-----Original Message----- >>From: Yoav Shapira [mailto:yoavsh@MIT.EDU] >>Sent: Tuesday, May 03, 2005 9:02 AM >>To: 'Tomcat Developers List' >>Subject: RE: Code Submission - Wild Card Aliases >> >>Hi, >>The performance impact is not that big. If it was a >>configurable option, >>e.g. enableAliasWildcardMatching, turned off by default, I'd >>be OK with it. >> >>Yoav >> >> >> >>>-----Original Message----- >>>From: Remy Maucherat [mailto:remm@apache.org] >>>Sent: Tuesday, May 03, 2005 10:04 AM >>>To: Tomcat Developers List >>>Subject: Re: Code Submission - Wild Card Aliases >>> >>>George Sexton wrote: >>> >>> >>>>I have completed the coding in o.a.t.u.http.mapper.Mapper >>>> >>>> >>to implement >> >> >>>>wild-card aliases. >>>> >>>>If a request for a host is made, and that host is not >>>> >>>> >>found, the code >> >> >>>tests >>> >>> >>>>the host and aliases list and looks for wild-cards. >>>> >>>>So, a host name of www.mydomain.com would match an alias of >>>> >>>> >>>*.mydomain.com. >>> >>> >>>>This additional level of testing is only done if the the >>>> >>>> >>presented host >> >> >>>name >>> >>> >>>>is not found in the standard host list. Once a host is >>>> >>>> >>found via wild- >> >> >>>card, >>> >>> >>>>it is added to the standard host list. Subsequent >>>> >>>> >>requests for that host >> >> >>>>name will find it via the standard search mechanism. >>>> >>>>As part of the conversion, I re-worked the test harness code and >>>> >>>> >>>expanded it >>> >>> >>>>to be a lot more complete. The output of the new test >>>> >>>> >>harness with the >> >> >>>>unmodified Mapper code matches identically the output of >>>> >>>> >>the modified >> >> >>>>mapper. IOW, I'm 99% confident that the behavior of the >>>> >>>> >>Mapper matches >> >> >>>the >>> >>> >>>>old Mapper. >>>> >>>>The time differential between the two runs is around 500ms over 1 >>>> >>>> >>>million >>> >>> >>>>iterations. I.E. the original code runs in 8000 ms for 1 million >>>> >>>> >>>iterations >>> >>> >>>>of the testing code, while the new code takes 8500ms. The >>>> >>>> >>new code adds >> >> >>>>approximately 0.05 % to the time for a lookup. >>>> >>>>I am running the modified mapper code with 5.5.9 on an >>>> >>>> >>installation that >> >> >>>has >>> >>> >>>>40 hosts configured and it seems to be working correctly. >>>> >>>>I'd really appreciate it if a committer would get this >>>> >>>> >>added to the >> >> >>>source >>> >>> >>>>tree. >>>> >>>>The complete modified Mapper.java file can be downloaded from: >>>> >>>>http://www.mhsoftware.com/~gsexton/Mapper.java >>>> >>>>If a decision is made to reject this patch, I'd >>>> >>>> >>appreciate knowing why. >> >> >>>If >>> >>> >>>>there's something wrong from a coding or style >>>> >>>> >>perspective, I'd be happy >> >> >>>to >>> >>> >>>>fix things. >>>> >>>> >>>-1 for lower performance and questionable use case. >>>(I didn't get the patch, but I don't really wish to) >>> >>>R�my >>> >>> >>> >>> >>--------------------------------------------------------------------- >> >> >>>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >>>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >>> >>> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >> >> >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org