[Catalyst] PATCH: refactor Catalyst::Engine::HTTP::Restarter to standalone module

Mark Stosberg mark at summersault.com
Sun Jul 22 13:58:42 GMT 2007


Hello, =


I like the auto-restart feature that is in the Catalyst HTTP::Restarter
server. I wanted to use the restarting trick with a project based on
HTTP::Server::Simple, so I looked to see how tied this functionality was to
Catalyst. Here's what I found:

Catalyst::Engine::HTTP::Restarter::Watcher is not functionally tied to
Catalyst at all. It just shares a namespace. =


Catalyst::Engine::HTTP::Restarter depends on no functionality from Catalyst
but was still coupled with it through a base-class relationship which could
be easily avoided.

The attached patch moves these to modules into the HTTP::Server::Restarter
namespace, and makes slight alternations to the other Catalyst files so
that the functionality remains the same, as well as the dependencies. =


The patch provides significantly improved documentation for some related
functions as well.

Thank you for your consideration.

=A0 =A0 =A0 =A0Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refactor_http_server_restarter.patch
Type: text/x-diff
Size: 18255 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070722/de2e=
6ced/refactor_http_server_restarter.bin


More information about the Catalyst mailing list