I have written a CGI application and it is run by Apache server, waiting for requests to process. The fact is that after receiving each request, Apache runs the application, processes the requests and replies accordingly. It has some drawbacks in terms of performance since by receiving each request, it has to load all the necessary requirements and initialization. Another problem is that in the application, I have to keep track of some information for the ACK that the client will be sending later. How can I run the application once, get it always wait to serve the requests?
Share
It sounds like you want to use
mod_fastcgifor Apache. From the web site: