FreeBSD Bugzilla – Attachment 165099 Details for
Bug 205919
[patch] lang/mono: increase FD limit for kqueue-based FileSystemWatcher
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
back-port the change to increase the FD limit from master
patch-mcs_class_System_System.IO_KeventWatch.cs (text/plain), 909 bytes, created by
Daniel Becker
on 2016-01-05 11:45:09 UTC
(
hide
)
Description:
back-port the change to increase the FD limit from master
Filename:
MIME Type:
Creator:
Daniel Becker
Created:
2016-01-05 11:45:09 UTC
Size:
909 bytes
patch
obsolete
>--- mcs/class/System/System.IO/KeventWatcher.cs.orig 2015-11-12 01:00:29.000000000 -0800 >+++ mcs/class/System/System.IO/KeventWatcher.cs 2016-01-05 02:56:33.812390983 -0800 >@@ -162,6 +162,8 @@ > > class KqueueMonitor : IDisposable > { >+ static bool initialized; >+ > public int Connection > { > get { return conn; } >@@ -171,6 +173,13 @@ > { > this.fsw = fsw; > this.conn = -1; >+ if (!initialized){ >+ int t; >+ initialized = true; >+ var maxenv = Environment.GetEnvironmentVariable ("MONO_DARWIN_WATCHER_MAXFDS"); >+ if (maxenv != null && Int32.TryParse (maxenv, out t)) >+ maxFds = t; >+ } > } > > public void Dispose () >@@ -625,7 +634,7 @@ > const int F_GETPATH = 50; > const int __DARWIN_MAXPATHLEN = 1024; > static readonly kevent[] emptyEventList = new System.IO.kevent[0]; >- const int maxFds = 200; >+ int maxFds = Int32.MaxValue; > > FileSystemWatcher fsw; > int conn;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205919
: 165099