Rob,
thanks for your reply.
Until now I could fit into existing boundaries. I've found some
limitations using the PreFork.pm server. What I need is to establish a
control connection to the parent process (either of socket or just
stdio), and I need to handle input on this channel in run_parent method.
Currently there is no way to hook in. In run_parent the
child_is_talking_hook hook is called, but it can not happen, as it is
not possible to add some handle into child_select.
I think that it would be fine (and quite logic) to introduce new hooks
for PreFork server like
pre_fork_hook, post_fork_hook (per child process)
pre_run_parent_hook, post_run_parent_hook (for controlling process)
The patch is attached for for the second case.
Thanks for your great work.
Pavel
Rob Brown wrote:
Show quoted text> Mr Pavel:
>
> 1) Not sure about the syslog levels.
>
> 2) I think the docs needs to be clarified. It can take
> an array ref in order to support multiple ports. I'm
> not sure how this works with UNIX sockets.
>
> 3) Not sure about the unix_* props either. I'll review that.
>
> 4) Good idea to remove the socket file. I'll work on that
> for the next release.
>
> -- Rob
>
> On Fri, 17 Oct 2003, you wrote:
>
>>This message about Net-Server was sent to you by PAVELH <PAVELH@cpan.org> via rt.cpan.org
>>
>>Full context and any attached attachments can be found at:
>><URL:
https://rt.cpan.org/Ticket/Display.html?id=4141 >
>>
>>Paul,
>>
>>it's more commants/question the a real bugs, but e-mails sent to your address are bounced.
>>
>>We've started to use your Net::Server module. First many thanks, it saves a lot of work. Here are my comments and questions.
>>
>>1) Why the number of log levels doesn't match the number available for syslog?
>>
>>2) We use UNIX sockets in pre-forked server. After a while I've discovered that the name socket is bound to must be given in a port name as an array ref. (like server => {port => ["my-filename"]}) Documentation is unclear on this.
>>
>>3) If I looked into Proto/UNIX.pm it tries to read "unix_path" and "unix_type" from server props, but these settings are immediately rewritten by values given in port - as a result of this "unix*" props plays never any role as the port is always set (at least it defaults to 20203). So what's the role of "unix*" params (not documented).
>>
>>4) Net::Server::UNIX doesn't remove the socket file when exitng.
>>
>>I didn't read all the code and it is quite possible I've overlooked something important. I'm sorry to bother you in such case. If you give me some feedback and guidelines, I'm ready to help you with coding.
>>
>>Have a nice day
>>
>>Pavel
--
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com