[Mono-bugs] [Bug 490497] New: "watch for changes to web.config also in the subdirectories" causes problems

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 30 20:08:59 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=490497


           Summary: "watch for changes to web.config also in the
                    subdirectories" causes problems
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: jit at occams.info
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


This change was made:

r122069 | mhabersack | 2008-12-23 21:15:59 -0500 (Tue, 23 Dec 2008) | 5 lines

2008-12-24  Marek Habersack  <mhabersack at novell.com>

    * HttpApplicationFactory.cs: watch for changes to web.config also
    in the subdirectories.

--- HttpApplicationFactory.cs    (revision 122068)
+++ HttpApplicationFactory.cs    (revision 122069)
@@ -457,9 +457,9 @@

-                    WatchLocationForRestart("Web.config");
-                    WatchLocationForRestart("web.config");
-                    WatchLocationForRestart("Web.Config");
+                    WatchLocationForRestart(String.Empty, "Web.config", true);
+                    WatchLocationForRestart(String.Empty, "web.config", true);
+                    WatchLocationForRestart(String.Empty, "Web.Config", true);

The result is that, at least with Inotify, it creates a watcher on every
subdirectory of the app path (three times?), and this involves scanning all of
the subdirectories. My app path has a LOT of data files in a deep directory
structure, and this causes the app initialization to take a very very long
time.

Putting these three lines back fixes the problem.

Perhaps this is a bug with the Inotify FileSystemWatcher?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list