[Catalyst] Self restarting test server for Win32!
Kiefer, Sascha
sk at intertivity.com
Tue Nov 8 23:08:44 CET 2005
Okay, here we go. :)
Feel free to test it and add it to 5.5! :)
Have fun
--esskar
> -----Original Message-----
> From: catalyst-bounces at lists.rawmode.org
> [mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of
> Sebastian Riedel
> Sent: Dienstag, 8. November 2005 19:16
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Self restarting test server for Win32!
>
>
>
> Am 08.11.2005 um 16:55 schrieb Sascha Kiefer:
>
> > Will Hawes schrieb:
> >
> >> Attached are patches to the latest (as of yesterday)
> >> Catalyst::Engine::HTTP and Catalyst::Engine::HTTP::Restarter to
> >> implement what is hopefully a cross-platform compatible, self-
> >> restarting test server.
> >>
> >> It uses sockets and should work on any system that supports them.
> >> As far as I am aware that should cover most (all?) Unix
> >> derivatives and any Windows from 2000 onwards. Verified on
> Win2K3,
> >> FreeBSD 5.4 and Suse Linux 10.0.
> >>
> >> This approach allows for a more graceful shutdown of the server -
> >> it doesn't kill() anything, ensuring that all ports can be
> >> released properly.
> >>
> >> I'd appreciate some testing and feedback. Note that you may need
> >> to open port 3001 if you are running a firewall on your machine -
> >> this is currently hard coded in the patch but can be
> changed later
> >> if all works as intended.
> >>
> >> wh
> >>
> >>
> ---------------------------------------------------------------------
> >> ---
> >>
> >> _______________________________________________
> >> Catalyst mailing list
> >> Catalyst at lists.rawmode.org
> >> http://lists.rawmode.org/mailman/listinfo/catalyst
> >>
> > Hi.
> > good job but i don't like your approach! Why? Well, i have three
> > reasons.
> > 1. the port (3001) is not configurable (yet)
> > 2. anybody could send "1" to port 3001; you should check
> whether or
> > not the ip comes from an allowed ip-endpoint using a mask := (ip &
> > mask) == client-ip (may require more configuration)
> > 3. it uses another TCP listen socket; why not using the
> HTTP listen
> > socket and sending a special HTTP command like KILL / HTTP/1.0 (or
> > CATALYST-KILL / HTTP/1.0)
>
> I like the KILL idea!
> But hurry if you want this included in 5.5, since we have a feature
> freeze tomorrow.
>
>
> --
> sebastian
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Restarter.pm.diff
Type: application/octet-stream
Size: 1908 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051108/81ac9c0a/Restarter.pm-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HTTP.pm.diff
Type: application/octet-stream
Size: 1748 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051108/81ac9c0a/HTTP.pm-0001.obj
More information about the Catalyst
mailing list