antiResourceLocking - hot deployment using context.xml in catalina localhost - tomcat6.0 - Reg.

2009-06-19 Thread Murali
Hi, I am using Tomcat6.0.13, and could read from the tomcat document that the ,antiResourceLocking' has a side effect of truncating the size of some files to 0 bytes. Does the side effect still exist with Tomcat 6.0.13 version? I know that Tomcat 5.0 has this side effect but I don't know w

Re: [VOTE] Release JDBC Pool module v1.0.4

2009-06-19 Thread Mark Thomas
Filip Hanik - Dev Lists wrote: > Cleaned up and fixed. > > The release is located here: > http://people.apache.org/~fhanik/jdbc-pool/v1.0.4/ > > > [ ] STABLE - I couldn't find any bugs > [ ] BETA - I found some bugs but not critical > [X] BROKEN - I found some show stoppers > As Sebb has bee

Re: className in conf/context.xml

2009-06-19 Thread Mark Thomas
Filip Hanik - Dev Lists wrote: > is no longer being picked up, at least not in my test. > I think it's related to the deploy refactor that has been going on, > possibly related to > https://issues.apache.org/bugzilla/show_bug.cgi?id=47343 Possibly. I'll take a look. Mark --

Re: svn commit: r785952 - in /tomcat/trunk/test/org/apache/catalina/valves: ./ Benchmarks.java

2009-06-19 Thread Mark Thomas
Filip Hanik - Dev Lists wrote: > I'm not sure what we are trying to do in this test, in my mind we are > proving nothing with this test :) The only purpose of the test is to provide a representative micro benchmark of the current code vs your suggestion to use ThreadLocals instead (in the 5.5.x pa

Re: svn commit: r785952 - in /tomcat/trunk/test/org/apache/catalina/valves: ./ Benchmarks.java

2009-06-19 Thread Mark Thomas
sebb wrote: > Oops, forgot to mention - there are only 5 threads in the test; it > might be useful to try tests with increasing numbers of threads to see > if the relative numbers change. I did (I used 50) and they get a little closer but not much. I left it at 5 as that was my best WAG as to how

svn commit: r786455 - /tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 11:11:06 2009 New Revision: 786455 URL: http://svn.apache.org/viewvc?rev=786455&view=rev Log: Minor improvements - as per Sebb's comment on the dev list - need to add a volatile - correct the log message Modified: tomcat/trunk/test/org/apache/catalina/valves/Ben

Re: svn commit: r785952 - in /tomcat/trunk/test/org/apache/catalina/valves: ./ Benchmarks.java

2009-06-19 Thread Mark Thomas
sebb wrote: > If it is intended to allow currentDate to be updated by another thread > before the return, then the field needs to be volatile. Otherwise the > return value needs to be established in the synch. block. It needs to be volatile. I ran some comparisons and the performance difference ap

Re: [VOTE] Release build 4.1.40 - Take 2

2009-06-19 Thread Mark Thomas
Mark Thomas wrote: > The (updated) candidates source tarball and derived binaries are > available here: > http://tomcat.apache.org/dev/dist/apache-tomcat-4.1.40/ > > According to the release process, the release based on the 4.0.40 tag is: > [ ] Broken > [ ] Alpha > [ ] Beta > [X] Stable Here is

svn commit: r786468 - /tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 12:04:52 2009 New Revision: 786468 URL: http://svn.apache.org/viewvc?rev=786468&view=rev Log: As per review comments: - use StringBuilder - add comment to explain one possible cause - better logging using original data Modified: tomcat/trunk/java/org/apache/tomc

svn commit: r786469 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 12:07:39 2009 New Revision: 786469 URL: http://svn.apache.org/viewvc?rev=786469&view=rev Log: Add patch to address Filip and Konstantin's review comments I have assumed Filip is still +1 for this Modified: tomcat/tc6.0.x/trunk/STATUS.txt Modified: tomcat/tc6.0.

svn commit: r786471 - in /tomcat/trunk: java/org/apache/catalina/ java/org/apache/catalina/core/ java/org/apache/catalina/loader/ java/org/apache/catalina/manager/ java/org/apache/catalina/servlets/ j

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 12:10:05 2009 New Revision: 786471 URL: http://svn.apache.org/viewvc?rev=786471&view=rev Log: The servletapi gives us a perfectly good constant for 'javax.servlet.context.tempdir'. Use it. Modified: tomcat/trunk/java/org/apache/catalina/Globals.java tomcat/

svn commit: r786473 - in /tomcat/trunk: java/org/apache/catalina/valves/AccessLogValve.java java/org/apache/jasper/compiler/JspRuntimeContext.java test/org/apache/catalina/connector/TestRequest.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 12:16:25 2009 New Revision: 786473 URL: http://svn.apache.org/viewvc?rev=786473&view=rev Log: Undo accidental commit of files that should not have been included in r786471. These will follow separately with the correct comments. Sorry for the noise. Modified: t

Re: svn commit: r786471 - in /tomcat/trunk: java/org/apache/catalina/ java/org/apache/catalina/core/ java/org/apache/catalina/loader/ java/org/apache/catalina/manager/ java/org/apache/catalina/servlet

2009-06-19 Thread Tim Funk
Where these meant to be included? http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java?rev=786471&r1=786470&r2=786471&view=diff http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/JspRuntimeContext.java?rev=786471&r1=786470&r2=786471&v

Re: svn commit: r786471 - in /tomcat/trunk: java/org/apache/catalina/ java/org/apache/catalina/core/ java/org/apache/catalina/loader/ java/org/apache/catalina/manager/ java/org/apache/catalina/servlet

2009-06-19 Thread Mark Thomas
Tim Funk wrote: > Where these meant to be included? No. Finger trouble on my part. Different tools with different default behaviour for the enter key. Should already be fixed. Mark > http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java?rev=786471&r1=78647

svn commit: r786477 - /tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java

2009-06-19 Thread kkolinko
Author: kkolinko Date: Fri Jun 19 12:27:08 2009 New Revision: 786477 URL: http://svn.apache.org/viewvc?rev=786477&view=rev Log: Rewrote the benchmarks, to allow more than 2 different implementations to be compared. Modified: tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java Modif

Re: svn commit: r785952 - in /tomcat/trunk/test/org/apache/catalina/valves: ./ Benchmarks.java

2009-06-19 Thread Konstantin Kolinko
Mark, I rewrote the benchmark to allow more than two implementations to be compared. A test now implements Runnable and its toString() prints the variable part of the message. It was fun running these tests. I will detail my observations later. My thought is that the main difference in time com

svn commit: r786483 - /tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 12:40:56 2009 New Revision: 786483 URL: http://svn.apache.org/viewvc?rev=786483&view=rev Log: Add an additional volatile from a review of the associated benchmark tests. Add a sync Modified: tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java Modif

svn propchange: r786483 - svn:log

2009-06-19 Thread markt
Author: markt Revision: 786483 Modified property: svn:log Modified: svn:log at Fri Jun 19 12:49:51 2009 -- --- svn:log (original) +++ svn:log Fri Jun 19 12:49:51 2009 @@ -1,2 +1,2 @@ Add an additional volatile from a revi

svn commit: r786484 - /tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java

2009-06-19 Thread kkolinko
Author: kkolinko Date: Fri Jun 19 12:51:11 2009 New Revision: 786484 URL: http://svn.apache.org/viewvc?rev=786484&view=rev Log: Added toString() call to the StringBuffer. The tests will run a bit slower because of that. Added two other implementation variants for the first test. Modified: to

svn commit: r786486 - /tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 12:55:56 2009 New Revision: 786486 URL: http://svn.apache.org/viewvc?rev=786486&view=rev Log: Add a header case-sensitivity test for 37794 test case (as reported by Tim) Modified: tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java Modified: tomcat

svn commit: r786487 - /tomcat/trunk/java/org/apache/catalina/connector/Request.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 12:56:40 2009 New Revision: 786487 URL: http://svn.apache.org/viewvc?rev=786487&view=rev Log: Headers should be compared ignoring case. Reported by Tim F. Modified: tomcat/trunk/java/org/apache/catalina/connector/Request.java Modified: tomcat/trunk/java/org/apa

svn commit: r786489 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:00:29 2009 New Revision: 786489 URL: http://svn.apache.org/viewvc?rev=786489&view=rev Log: Add additional required patch Modified: tomcat/tc6.0.x/trunk/STATUS.txt Modified: tomcat/tc6.0.x/trunk/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/tru

svn commit: r786490 - /tomcat/trunk/java/org/apache/jasper/compiler/JspRuntimeContext.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:03:42 2009 New Revision: 786490 URL: http://svn.apache.org/viewvc?rev=786490&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=38352 The JSPLoader needs to have read/write permission to the context's temp directory, as per the spec. Modified:

svn commit: r786491 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:05:52 2009 New Revision: 786491 URL: http://svn.apache.org/viewvc?rev=786491&view=rev Log: Propose fix Modified: tomcat/tc6.0.x/trunk/STATUS.txt Modified: tomcat/tc6.0.x/trunk/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=

DO NOT REPLY [Bug 38352] Additional Entries for Default catalina.policy file.

2009-06-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=38352 --- Comment #7 from Mark Thomas 2009-06-19 06:06:24 PST --- Not quite. The javax.servlet.context.tempdir is a context attribute rather than a system property. There is a complication that the name of the work directory varies per cont

DO NOT REPLY [Bug 38352] Additional Entries for Default catalina.policy file.

2009-06-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=38352 Mark Thomas changed: What|Removed |Added Status|NEEDINFO|NEW --- Comment #8 from Mark Tho

svn commit: r786494 - /tomcat/current/tc5.5.x/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:07:28 2009 New Revision: 786494 URL: http://svn.apache.org/viewvc?rev=786494&view=rev Log: Propose patch Modified: tomcat/current/tc5.5.x/STATUS.txt Modified: tomcat/current/tc5.5.x/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/current/tc5.5.x/STATUS.

svn commit: r786495 - /tomcat/current/tc5.5.x/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:08:02 2009 New Revision: 786495 URL: http://svn.apache.org/viewvc?rev=786495&view=rev Log: Add extra patch required Modified: tomcat/current/tc5.5.x/STATUS.txt Modified: tomcat/current/tc5.5.x/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/current/tc5.

svn commit: r786496 - /tomcat/trunk/build.properties.default

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:11:00 2009 New Revision: 786496 URL: http://svn.apache.org/viewvc?rev=786496&view=rev Log: Update to pool 1.5.1 - fixes regression in 1.5 Modified: tomcat/trunk/build.properties.default Modified: tomcat/trunk/build.properties.default URL: http://svn.apache.

svn commit: r786498 - /tomcat/current/tc5.5.x/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:13:35 2009 New Revision: 786498 URL: http://svn.apache.org/viewvc?rev=786498&view=rev Log: Propose pool update Modified: tomcat/current/tc5.5.x/STATUS.txt Modified: tomcat/current/tc5.5.x/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/current/tc5.5.x/S

svn commit: r786499 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 13:13:53 2009 New Revision: 786499 URL: http://svn.apache.org/viewvc?rev=786499&view=rev Log: Propose pool update Modified: tomcat/tc6.0.x/trunk/STATUS.txt Modified: tomcat/tc6.0.x/trunk/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.

Duplicate code in AccessLogValve

2009-06-19 Thread sebb
Just spotted this duplicate code in AccessLogValve: 661:if (!dateStamp.equals(tsDate)) { 662:if (!dateStamp.equals(tsDate)) { Not sure this double-checked looking offers any benefit ;-) --

Re: Modified dist.xml to produce platform native packages

2009-06-19 Thread Mark Thomas
> From: Mladen Turk > I suppose the .sh files have LF line endings even in .zip, > and those are the only one critical. I believe they do (I'm not near my pc so can't check) and if they don't, I'd be +1 for changing the build scipts so they do. Mark --

Re: Duplicate code in AccessLogValve

2009-06-19 Thread sebb
On 19/06/2009, sebb wrote: > Just spotted this duplicate code in AccessLogValve: > > 661:if (!dateStamp.equals(tsDate)) { > 662:if (!dateStamp.equals(tsDate)) { > > Not sure this double-checked looking offers any benefit ;-) > Line 767 is als

Re: Duplicate code in AccessLogValve

2009-06-19 Thread Xie Xiaodong
No, I think line767 is still needed. You could turn to the last part of this article for reference: " http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html";. 2009/6/19 sebb > On 19/06/2009, sebb wrote: > > Just spotted this duplicate code in AccessLogValve: > > > > 661:

svn commit: r786527 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 14:55:07 2009 New Revision: 786527 URL: http://svn.apache.org/viewvc?rev=786527&view=rev Log: Votes and a comment Modified: tomcat/tc6.0.x/trunk/STATUS.txt Modified: tomcat/tc6.0.x/trunk/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.

svn commit: r786530 - /tomcat/current/tc5.5.x/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 15:00:18 2009 New Revision: 786530 URL: http://svn.apache.org/viewvc?rev=786530&view=rev Log: Votes Modified: tomcat/current/tc5.5.x/STATUS.txt Modified: tomcat/current/tc5.5.x/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/current/tc5.5.x/STATUS.txt?rev=

svn commit: r786532 - /tomcat/trunk/modules/jdbc-pool/NOTICE

2009-06-19 Thread fhanik
Author: fhanik Date: Fri Jun 19 15:05:04 2009 New Revision: 786532 URL: http://svn.apache.org/viewvc?rev=786532&view=rev Log: Correct per sebb/markt Modified: tomcat/trunk/modules/jdbc-pool/NOTICE Modified: tomcat/trunk/modules/jdbc-pool/NOTICE URL: http://svn.apache.org/viewvc/tomcat/trunk

svn commit: r786540 - /tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 15:12:02 2009 New Revision: 786540 URL: http://svn.apache.org/viewvc?rev=786540&view=rev Log: Remove duplicate code - my bad from r781779. Thanks to sebb for spotting it. Modified: tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java Modified: tomca

Re: Duplicate code in AccessLogValve

2009-06-19 Thread sebb
On 19/06/2009, Xie Xiaodong wrote: > No, I think line767 is still needed. You could turn to the last part of this > article for reference: " > http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html";. Oops, my bad. The code would still work, but it would sometimes create a new D

[CANCELLED] Re: [VOTE] Release JDBC Pool module v1.0.4

2009-06-19 Thread Filip Hanik - Dev Lists
There is an incorrect NOTICE file, I missed the actual message trying to be told to me in all the noise. my apologies Filip Filip Hanik - Dev Lists wrote: Cleaned up and fixed. The release is located here: http://people.apache.org/~fhanik/jdbc-pool/v1.0.4/ [ ] STABLE - I couldn't find any b

Re: svn commit: r786532 - /tomcat/trunk/modules/jdbc-pool/NOTICE

2009-06-19 Thread sebb
On 19/06/2009, fha...@apache.org wrote: > Author: fhanik > Date: Fri Jun 19 15:05:04 2009 > New Revision: 786532 > > URL: http://svn.apache.org/viewvc?rev=786532&view=rev > Log: > Correct per sebb/markt Sorry, but this is still incorrect. The NOTICE is now: >>> This product includes softwa

Re: svn commit: r785952 - in /tomcat/trunk/test/org/apache/catalina/valves: ./ Benchmarks.java

2009-06-19 Thread Filip Hanik - Dev Lists
Mark Thomas wrote: Filip Hanik - Dev Lists wrote: I'm not sure what we are trying to do in this test, in my mind we are proving nothing with this test :) The only purpose of the test is to provide a representative micro benchmark of the current code vs your suggestion to use ThreadLoca

Re: svn commit: r786532 - /tomcat/trunk/modules/jdbc-pool/NOTICE

2009-06-19 Thread Filip Hanik - Dev Lists
sebb wrote: On 19/06/2009, fha...@apache.org wrote: Author: fhanik Date: Fri Jun 19 15:05:04 2009 New Revision: 786532 URL: http://svn.apache.org/viewvc?rev=786532&view=rev Log: Correct per sebb/markt Sorry, but this is still incorrect. The NOTICE is now: This product inclu

svn commit: r786569 - /tomcat/trunk/modules/jdbc-pool/NOTICE

2009-06-19 Thread fhanik
Author: fhanik Date: Fri Jun 19 16:16:16 2009 New Revision: 786569 URL: http://svn.apache.org/viewvc?rev=786569&view=rev Log: correction Modified: tomcat/trunk/modules/jdbc-pool/NOTICE Modified: tomcat/trunk/modules/jdbc-pool/NOTICE URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdb

Re: svn commit: r786569 - /tomcat/trunk/modules/jdbc-pool/NOTICE

2009-06-19 Thread sebb
On 19/06/2009, fha...@apache.org wrote: > Author: fhanik > Date: Fri Jun 19 16:16:16 2009 > New Revision: 786569 > > URL: http://svn.apache.org/viewvc?rev=786569&view=rev > Log: > correction > > Modified: > tomcat/trunk/modules/jdbc-pool/NOTICE > > Modified: tomcat/trunk/modules/jdbc-po

Re: [VOTE] Release build 4.1.40 - Take 2

2009-06-19 Thread sebb
On 16/06/2009, Mark Thomas wrote: > The (updated) candidates source tarball and derived binaries are > available here: > http://tomcat.apache.org/dev/dist/apache-tomcat-4.1.40/ > > According to the release process, the release based on the 4.0.40 tag is: Did you mean 4.1.40? Also, where can I

Re: [VOTE] Release build 4.1.40 - Take 2

2009-06-19 Thread Mark Thomas
sebb wrote: > On 16/06/2009, Mark Thomas wrote: >> The (updated) candidates source tarball and derived binaries are >> available here: >> http://tomcat.apache.org/dev/dist/apache-tomcat-4.1.40/ >> >> According to the release process, the release based on the 4.0.40 tag is: > > Did you mean 4.1

svn commit: r786584 - /tomcat/trunk/modules/jdbc-pool/NOTICE

2009-06-19 Thread fhanik
Author: fhanik Date: Fri Jun 19 17:07:36 2009 New Revision: 786584 URL: http://svn.apache.org/viewvc?rev=786584&view=rev Log: shortened Modified: tomcat/trunk/modules/jdbc-pool/NOTICE Modified: tomcat/trunk/modules/jdbc-pool/NOTICE URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc

svn commit: r786585 - /tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 17:13:00 2009 New Revision: 786585 URL: http://svn.apache.org/viewvc?rev=786585&view=rev Log: As per Filip's suggestions: - reduce object creation - better use of ThreadLocals Modified: tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java Modified: tomc

Re: svn commit: r785952 - in /tomcat/trunk/test/org/apache/catalina/valves: ./ Benchmarks.java

2009-06-19 Thread Mark Thomas
Filip Hanik - Dev Lists wrote: > Mark Thomas wrote: >> I was a little surprised that ThreadLocal seems to be slower. I still >> wonder if I got the test wrong for that but I can't see anything. >> > If it was me doing the date, and making it all threadlocal, with no > global variables at all > And

Re: svn commit: r786530 - /tomcat/current/tc5.5.x/STATUS.txt

2009-06-19 Thread Konstantin Kolinko
>  * Fix wrong download location of tcnative 1.1.16 >   Patch for "build/build.properties.default": >   > http://people.apache.org/~kkolinko/patches/2009-05-25_fix_tcnative_download.patch >   +1: kkolinko, fhanik > -  -1: > +  -1: markt - the updated location is still wrong It points to http://to

Re: svn commit: r786527 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread Konstantin Kolinko
2009/6/19 >   http://svn.apache.org/viewvc?rev=785768&view=rev >   http://svn.apache.org/viewvc?rev=785859&view=rev >   +1: kkolinko > +  +1: markt - I don't like commenting out code - if it isn't needed just > delete it > +            - This is fine for 6.0.x, for trunk 1.6 is the minimum >   -1

Re: svn commit: r786530 - /tomcat/current/tc5.5.x/STATUS.txt

2009-06-19 Thread Mark Thomas
Konstantin Kolinko wrote: >> * Fix wrong download location of tcnative 1.1.16 >> Patch for "build/build.properties.default": >> >> http://people.apache.org/~kkolinko/patches/2009-05-25_fix_tcnative_download.patch >> +1: kkolinko, fhanik >> - -1: >> + -1: markt - the updated location is st

Re: svn commit: r786527 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread Mark Thomas
Konstantin Kolinko wrote: > 2009/6/19 >> http://svn.apache.org/viewvc?rev=785768&view=rev >> http://svn.apache.org/viewvc?rev=785859&view=rev >> +1: kkolinko >> + +1: markt - I don't like commenting out code - if it isn't needed just >> delete it >> +- This is fine for 6.0.x, f

Re: [VOTE] Release build 4.1.40 - Take 2

2009-06-19 Thread sebb
On 19/06/2009, Mark Thomas wrote: > sebb wrote: > > On 16/06/2009, Mark Thomas wrote: > >> The (updated) candidates source tarball and derived binaries are > >> available here: > >> http://tomcat.apache.org/dev/dist/apache-tomcat-4.1.40/ > >> > >> According to the release process, the re

svn commit: r786631 - /tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java

2009-06-19 Thread kkolinko
Author: kkolinko Date: Fri Jun 19 18:57:59 2009 New Revision: 786631 URL: http://svn.apache.org/viewvc?rev=786631&view=rev Log: Add two more implementations for the second test. a) using a single ThreadLocal instead of multiple ones b) also using StringBuilder instead of StringBuffer Also, replace

Re: svn commit: r785952 - in /tomcat/trunk/test/org/apache/catalina/valves: ./ Benchmarks.java

2009-06-19 Thread Konstantin Kolinko
2009/6/19 Mark Thomas : > > I've made the changes you suggested and lo and behold the ThreadLocal is > quicker. > >> testAccessLogGetDate: 16 threads and 1000 iterations using Syncs >> took 7461ms >> testAccessLogGetDate: 16 threads and 1000 iterations using >> ThreadLocals took 6433ms > >

Re: svn commit: r786631 - /tomcat/trunk/test/org/apache/catalina/valves/Benchmarks.java

2009-06-19 Thread sebb
On 19/06/2009, kkoli...@apache.org wrote: > Author: kkolinko > Date: Fri Jun 19 18:57:59 2009 > New Revision: 786631 > > URL: http://svn.apache.org/viewvc?rev=786631&view=rev > Log: > Add two more implementations for the second test. > a) using a single ThreadLocal instead of multiple ones >

Re: [VOTE] Release build 4.1.40 - Take 2

2009-06-19 Thread Mark Thomas
sebb wrote: > The source archives mostly agree with the tags, however there are code > changes in the following files: > > connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java > connectors/util/java/org/apache/tomcat/util/buf/CharChunk.java > connectors/util/java/org/apache/tom

svn commit: r786653 - /tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 20:21:53 2009 New Revision: 786653 URL: http://svn.apache.org/viewvc?rev=786653&view=rev Log: Switch to ThreadLocal where possible. This removes all the syncs apart from those related to accessing the log file. Modified: tomcat/trunk/java/org/apache/catalina/va

svn commit: r786654 - in /tomcat: build/tc5.5.x/RELEASE-NOTES container/branches/tc4.1.x/README.txt tc6.0.x/trunk/RELEASE-NOTES trunk/RELEASE-NOTES

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 20:25:01 2009 New Revision: 786654 URL: http://svn.apache.org/viewvc?rev=786654&view=rev Log: As per http://www.apache.org/dev/crypto.html#inform add a crypto notice to each of the releases Modified: tomcat/build/tc5.5.x/RELEASE-NOTES tomcat/container/branc

Re: svn commit: r786653 - /tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java

2009-06-19 Thread Mark Thomas
ma...@apache.org wrote: > Author: markt > Date: Fri Jun 19 20:21:53 2009 > New Revision: 786653 > > URL: http://svn.apache.org/viewvc?rev=786653&view=rev > Log: > Switch to ThreadLocal where possible. This removes all the syncs apart from > those related to accessing the log file. I'm planning t

svn commit: r786656 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread kkolinko
Author: kkolinko Date: Fri Jun 19 20:29:34 2009 New Revision: 786656 URL: http://svn.apache.org/viewvc?rev=786656&view=rev Log: votes Modified: tomcat/tc6.0.x/trunk/STATUS.txt Modified: tomcat/tc6.0.x/trunk/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=786

Re: [VOTE] Release build 4.1.40 - Take 2

2009-06-19 Thread sebb
On 19/06/2009, Mark Thomas wrote: > sebb wrote: > > The source archives mostly agree with the tags, however there are code > > changes in the following files: > > > > connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java > > connectors/util/java/org/apache/tomcat/util/buf/C

Re: svn commit: r786653 - /tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java

2009-06-19 Thread sebb
On 19/06/2009, ma...@apache.org wrote: > Author: markt > Date: Fri Jun 19 20:21:53 2009 > New Revision: 786653 > > URL: http://svn.apache.org/viewvc?rev=786653&view=rev > Log: > Switch to ThreadLocal where possible. This removes all the syncs apart from > those related to accessing the log f

svn commit: r786667 - /tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 21:14:32 2009 New Revision: 786667 URL: http://svn.apache.org/viewvc?rev=786667&view=rev Log: Can't use queryMB as that isn't the only source. Modified: tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java Modified: tomcat/trunk/java/org/apache/tomcat/

svn commit: r786670 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-06-19 Thread markt
Author: markt Date: Fri Jun 19 21:27:32 2009 New Revision: 786670 URL: http://svn.apache.org/viewvc?rev=786670&view=rev Log: Address Konstantin's review comment. The patch is now sufficiently different that I removed Filip's vote to give him a chance to re-review Modified: tomcat/tc6.0.x/tru

DO NOT REPLY [Bug 47395] New: Dispatcher.forward and getPathInfo() != null causes stack overflow

2009-06-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47395 Summary: Dispatcher.forward and getPathInfo() != null causes stack overflow Product: Tomcat 6 Version: 6.0.20 Platform: PC OS/Version: Windows XP Status: NEW

Re: svn commit: r786667 - /tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java

2009-06-19 Thread Filip Hanik - Dev Lists
we're copying bytes to two new byte arrays on every call, just so that we have info when it fails? especially only logged with debugEnabled, shouldn't your logic check that flag then Filip ma...@apache.org wrote: Author: markt Date: Fri Jun 19 21:14:32 2009 New Revision: 786667 URL: http://s

Re: svn commit: r786667 - /tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java

2009-06-19 Thread Mark Thomas
Filip Hanik - Dev Lists wrote: > we're copying bytes to two new byte arrays on every call, just so that > we have info when it fails? For query string there is (and always has been) one copy and then this patch copies again for the failure info. For POST requests the only copy is for the failure

DO NOT REPLY [Bug 47395] Dispatcher.forward and getPathInfo() != null causes stack overflow

2009-06-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47395 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 47371] EL expression parser error when getter methed return an empty string

2009-06-19 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47371 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [VOTE] Release build 4.1.40 - Take 2

2009-06-19 Thread Mladen Turk
Mark Thomas wrote: The (updated) candidates source tarball and derived binaries are available here: http://tomcat.apache.org/dev/dist/apache-tomcat-4.1.40/ According to the release process, the release based on the 4.0.40 tag is: [ ] Broken [ ] Alpha [ ] Beta [X] Stable [x] Stable Tested on