Better fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=45403
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 3 Oct 2008 12:09:16 +0000 (12:09 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 3 Oct 2008 12:09:16 +0000 (12:09 +0000)
commit1e9580cfde385aa46bc9f521afb8ca7471ea73e2
tree04aa8623b4c2ff59e37994d2705fc228f708b961
parent3b364f12fbd0a41bd83a8d88aa7cc63a1ec18ce4
Better fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=45403
With this patch, the allowLinking flag applies to all web application resources. It is very slightly slower. On my machine with allowLinking=false, the change to line 899 increases the time from ~7 microseconds to create the file to ~70 microseconds to create and validate the file. As far as I can tell, this change is only going to affect context start times. If directory listings are enabled in the default servlet, they will also be slightly slower but they were horribly slow to start with.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@701358 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/naming/resources/FileDirContext.java