[Mono-dev] mod_mono restart patch
Joshua Tauberer
jit at occams.info
Wed May 21 14:57:04 EDT 2008
I encountered a problem when doing a mod-mono-server restart through the
mod_mono control panel that when requests came in while the restart was
in progress, the restart would fail, mod-mono-server would be forked but
fail to start, and it would be continually forked at each request but
still fail to start.
My solution was to disallow requests while a restart is in progress.
The attached patch allows mod-mono-server backends to be 'paused' with
requests coming in dropped with 503s during that time. The control panel
restart now pauses and resumes around the restart. You can also
pause/resume from the control panel.
The patch also changes where locking is done for the active requests
counter. (This should have no consequences.)
Attached. I'll commit if it's ok.
--
- Josh Tauberer
http://razor.occams.info
"Yields falsehood when preceded by its quotation! Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Godel, Escher, Bach" by Douglas Hofstadter)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod_mono.patch
Type: text/x-diff
Size: 11833 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080521/e507e1db/attachment.bin
More information about the Mono-devel-list
mailing list