[fpc-pascal] fpweb fcgi: auto shutdown feature
Michael Van Canneyt
michael at freepascal.org
Fri May 28 18:18:24 CEST 2010
On Fri, 28 May 2010, Bee Jay wrote:
> Hi all,
> After a bit studying fpWeb package, especially the FCGI application, I have a feature request to it. Would you (Joost? Michael?) please add auto shutdown (after some idle time) feature to TFCGIApplication? If you had looked at ExtPascal's FCGI implementation, it offers this feature. This feature is to prevent the FCGI app keep always running when it actually does nothing (idle). For some situations, this feature is usefull and handy. I saw the CGI gateway already able to execute local FCGI app if it fails to connect to it.
> I know I should supply a patch for this. But I'm not that confident to do it because I don't think I already got a good grasp to the code. The class hirarchy and dependency is quite complex, at least to me. I'm afraid I'm gonna mess them up. :D Or, if you don't have time to do it, please give me some lights about how to implement this feature correctly (how and where).
> For any response, I thank you in advance. :)
Unless Joost does it first, I'll have a look at it next week.
But it will be under control of an option, and this option
will be 'off' by default.
More information about the fpc-pascal