Author: krasnov
Date: 2007-06-24 04:09:40 -0400 (Sun, 24 Jun 2007)
New Revision: 80613
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
Log:
* HttpHandlerAction.cs: fixed SplitPaths property to be thread safe
Modified: trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2007-06-24 07:56:34 UTC (rev 80612)
+++ trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2007-06-24 08:09:40 UTC (rev 80613)
@@ -1,3 +1,7 @@
+2007-06-24 Vladimir Krasnov <[EMAIL PROTECTED]>
+
+ * HttpHandlerAction.cs: fixed SplitPaths property to be thread safe
+
2007-06-12 Vladimir Krasnov <[EMAIL PROTECTED]>
* CompilationSection.cs: TARGET_JVM on not supported features
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
2007-06-24 07:56:34 UTC (rev 80612)
+++
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
2007-06-24 08:09:40 UTC (rev 80613)
@@ -124,19 +124,19 @@
string cached_verb = null;
string[] cached_verbs;
- string cached_path = null;
FileMatchingInfo[] cached_files;
FileMatchingInfo[] SplitPaths ()
{
string [] paths = Path.Split (',');
- cached_files = new FileMatchingInfo [paths.Length];
+ FileMatchingInfo [] tmpCachedFiles = new
FileMatchingInfo [paths.Length];
+
int i = 0;
foreach (string s in paths)
- cached_files [i++] = new FileMatchingInfo (s);
+ tmpCachedFiles [i++] = new FileMatchingInfo (s);
- return cached_files;
+ return tmpCachedFiles;
}
string[] SplitVerbs ()
@@ -162,9 +162,8 @@
FileMatchingInfo[] Paths {
get {
- if (cached_path != Path) {
+ if (cached_files == null) {
cached_files = SplitPaths ();
- cached_path = Path;
}
return cached_files;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches