Net::Server::PreFork + FCGI
Fagyal Csongor <concept-G3hma/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Organization | Concept Online Ltd. |
| Message-ID | <[email protected]> |
Hi List,
I would like to create an external FCGI application based on
Net::ServerPreFork, something similar to FCGI::ProcManager.
Well... how do I do it? :)
My problem is that this:
# in a Net::Server::PreFork instance...
#...
sub process_request {
my $self = shift;
my $request = FCGI::Request( \*STDIN, \*STDOUT, \*STDERR,
\%ENV, $self->{server}->{client},
$FCGI::FAIL_ACCEPT_ON_INTR);
while ($request->Accept() >= 0) {
# do something
last;
}
$request->Finish;
}
#
Doesn't work - it stops at $request->Accept, probably(???) because
Accept is waiting for a connection that is already established - or
maybe because Net::Server overrides STDIN & STDOUT, I don't know.
Any ideas?
Thanx,
- Fagzal
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/