FastCGI plugin hangs after exit a process
807567Jul 21 2006 — edited Sep 28 2006Hi there again.
I�m developing a FastCGI application on a Sun One 6.1 SP 5 over Solaris 2.9.
I success in launching my FCGI Perl application, and it works fine in almost every case. But I have one issue, in which I make an exit in my program (jumping out the accept loop) , in order to restart my application. Here you are the last lines of perl code...
$request->Finish();
logEvent ("LoginCGI v.2.0: Shutting down");
close LOGGER;
$M_ldaph->unbind;
$R_ldaph->unbind;
exit(1);
So far, so wood. I can issue a ps -ef and no process is running on the system.
The problem is that when the following request comes, FCGI plugin is unable to start a new process of my application,returning a HTTP 500.
In this state, I can see in the machine a socket LISTENING on the port that my application does.
10.20.250.49.25757 *.* 0 0 32768 0 LISTEN
Seems that this port is not closed by the web server, and so NO new connections on this port can be engaged.
Do you know what could be the reason of this behaviour ? I think that this problem is not happening over Windows...
Thank you very much in advance.
Best Regards.