pre-fork is easy in POE, i can create Component::Server::TCP
and then create POE::Wheel::Run to run it. and the master
server can use the wheels to send the instruction to child
and get the child's output.

but in the mode, the master server is accept the connection, too. i think
it's better the master server don't accept
the connection as same as apache. the simplest way is to post
the event to make master server shutdown.
i can use :
$poe_kernel->post("server", "shutdown");

but, if i do it, the master server can not create child process to accept
and process the connection after component
server shutdown, so it is impossible to implement the features
like "MaxSpareServers" as same as apache.


is there a way to remove a SocketFactory wheel (componet server tcp used)
form kernel event loop and don't shutdown
the wheel?



Reply via email to