Net::Server - how to hook post_accept
- From: "shutterstock" <jon@xxxxxxxxxxxxxxxx>
- Date: 20 Aug 2006 15:27:38 -0700
Heya
I'm using Net::Server with the PreFork personality - and I'm trying to
hook post_accept. I would like have my proc called each time there is a
new connection.
What is the way to do this? The documentation doesn't provide it - and
I can't seem to find the answer online..
I tried to do a
sub post_accept {
<<do what i need each time i get a new cnx>>
}
but it seems to break the flow - and lock up the connection.. nothing
else gets handled (process_request never gets called, etc.) if I define
this sub. If I don't include the post_accept proc, my process_request
gets called just fine... How come I can hook process_request without
breaking the flow, but not post_accept?
How do I get the callback/hook whenever a new connection appears?
thanks!
Jon
.
- Follow-Ups:
- Re: Net::Server - how to hook post_accept
- From: Andy Hassall
- Re: Net::Server - how to hook post_accept
- Prev by Date: Re: Help Perl and Excel--Multiposted
- Next by Date: Re: Net::Server - how to hook post_accept
- Previous by thread: run simple opengl example
- Next by thread: Re: Net::Server - how to hook post_accept
- Index(es):
Relevant Pages
|