[System.Web] Add optional shared FileSystemWatcher's to CacheDependency
commit14e1e717aeffc2ad19a0c549dd9224fde08811e5
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 12 Nov 2018 15:30:23 +0000 (12 16:30 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 13 Nov 2018 20:02:31 +0000 (13 21:02 +0100)
tree5b94074ecf63ba5bf987cd70c03321b1308bbf24
parentc4087410008da3cb43913bea1b2b44ae802513bb
[System.Web] Add optional shared FileSystemWatcher's to CacheDependency

Right now we create a separate FileSystemWatcher for each file in
CacheDependency. On systems where inotify handles are limited this
leads to problems. As a workaround we can share the FSW which watches
the same directory. Since this wasn't extensively tested, hide it behind
and environment variable.

We enable this in the Helix environment only for now.
mcs/class/System.Web/System.Web.Caching/CacheDependency.cs
runtime/mono-test.sh