Commit Graph
8 Commits
Author SHA1 Message Date
Andres G. Aragoneses 7d75358e6c [WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
System.Web.ConfigurationManager had a cache which didn't have any max limit,
therefore when using Restful URIs in ASP.NET (like having some variable
parameter in the virtual path, i.e. /user/{userId}/tracks, where {userId}
is a variable Integer) this was very likely to cause a leak which would
end up causing troubles, like an InvalidCastException thrown by
HttpApplication::PreStart()

(Read operations in the cache now cause a write operation on the cache
object, so all sectionCache lock-read usages are converted to lock-write.)

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=5598
2013-05-14 17:47:40 +01:00
Bojan Rajkovic db8f33718a Revert "Merge pull request #618 from knocte/aspnet_lru"
This reverts commit 675328ef16, reversing
changes made to edc181c514.
2013-05-01 17:05:12 -04:00
Andres G. Aragoneses 126d079b84 [System.Web] Use STDERR instead of STDOUT in LRUcache
As suggested by Marek Habersack
2013-04-26 17:03:54 +01:00
Andres G. Aragoneses e072c0ec34 [System.Web] Move MONO_ASPNET_WEBCONFIG_CACHESIZE parsing out of LRUcache 2013-04-26 16:58:50 +01:00
Andres G. Aragoneses d198187591 [WebConfigurationManager] Reset LRUcache eviction count in Clear() 2013-04-25 00:10:50 +01:00
Andres G. Aragoneses d94839c493 [WebConfigurationManager] Make the max LRUcache size configurable
Using the env var MONO_ASPNET_WEBCONFIG_CACHESIZE, as discussed in BXC#5598
2013-04-25 00:01:08 +01:00
Andres G. Aragoneses 4f9bdfab16 [System.Web] Coding style nits in LruCache 2013-04-24 12:35:26 +01:00
Andres G. Aragoneses 96bbdc60bf [WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
System.Web.ConfigurationManager had a cache which didn't have any max limit,
therefore when using Restful URIs in ASP.NET (like having some variable
parameter in the virtual path, i.e. /user/{userId}/tracks, where {userId}
is a variable Integer) this was very likely to cause a leak which would
end up causing troubles, like an InvalidCastException thrown by
HttpApplication::PreStart()

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=5598
2013-04-23 16:36:42 +01:00