[Mono-dev] [PATCH] System.Web.HttpApplicationFactory: App_End in global.asax called multiple times

Juraj Skripsky js at hotfeet.ch
Wed Apr 4 10:10:47 EDT 2007


Hello,

Most of the time, Application_End in global.asax is called multiple
times for a single ending application. The problem is in
HttpApplicationFactory.OnFileChanged: the lock guards the method against
multiple _concurrent_ shutdowns only. It can still execute multiple
times sequentially (FileSystemWatcher emits multiple events when
global.asax is changed).

The attached patch fixes that.

Please review.

- Juraj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HttpApplicationFactory.patch
Type: text/x-patch
Size: 823 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070404/1de2870f/attachment.bin 


More information about the Mono-devel-list mailing list