{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/1880","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/1880/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/1880/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/1880/events","html_url":"https://github.com/dotnet/corefx/issues/1880","id":83038445,"number":1880,"title":"Add event buffering to Windows FileSystemWatcher to avoid InternalBufferOverflowExceptions","user":{"login":"pitmeinl","id":12680868,"avatar_url":"https://avatars.githubusercontent.com/u/12680868?v=3","gravatar_id":"","url":"https://api.github.com/users/pitmeinl","html_url":"https://github.com/pitmeinl","followers_url":"https://api.github.com/users/pitmeinl/followers","following_url":"https://api.github.com/users/pitmeinl/following{/other_user}","gists_url":"https://api.github.com/users/pitmeinl/gists{/gist_id}","starred_url":"https://api.github.com/users/pitmeinl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitmeinl/subscriptions","organizations_url":"https://api.github.com/users/pitmeinl/orgs","repos_url":"https://api.github.com/users/pitmeinl/repos","events_url":"https://api.github.com/users/pitmeinl/events{/privacy}","received_events_url":"https://api.github.com/users/pitmeinl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-31T08:27:27Z","updated_at":"2015-05-31T08:27:27Z","closed_at":null,"body":"Consumers should not have to worry about internals like the Windows FileSystemWatcher (FSW) trying to minimize usage of precious non-paged memory resulting in InternalBufferOverflowExceptions. \r\n\r\nBy default the FSW should buffer events in \"normal\" memory. Optionally FSW should fall back to the old non-buffering behaviour. \r\n\r\nBuffering could easily be implemented using a BlockingCollection.\r\n\r\nFor details and and implementation sample see my post:\r\nhttps://petermeinl.wordpress.com/2015/05/18/tamed-filesystemwatcher/\r\n\r\nAverage programmers (for which we should make life as easy as reasonable) often are often not even aware of having to implement an OnError event handler resulting in InternalBufferOverflowExceptions going unnoticed and FSW being perceived as unreliable."}}