[fpc-pascal] How to use FCGI in threaded mode?

Michael Van Canneyt michael at freepascal.org
Fri Jan 30 22:36:37 CET 2015



On Fri, 30 Jan 2015, silvioprog wrote:

> Yes! ...
> 
> On Fri, Jan 30, 2015 at 12:56 PM, silvioprog <silvioprog at gmail.com> wrote:
>       On Fri, Jan 30, 2015 at 4:46 AM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> [...] 
>       Do you know if FastCGI proxy accepts a multi-thread structure?
> 
> 
> "answered Jan 10 '14 at 5:42
> 
> [UKIvb.jpg?s=32&g=1]
> Avibodha
> 
> 
> I can't answer your exact questions about mod_fcgid, but Apache has moved on and the preferred method now in Apache 2.4 is to use
> mod_proxy_fcgi,http://httpd.apache.org/docs/trunk/mod/mod_proxy_fcgi.html.

Funny how they word it: 'Apache has moved on', when in fact they are saying 'we now do less work for you'.
How this is 'moving on' escapes me :-)

Meanwhile there are now 3 modules that handle the FastCGI protocol: mod_fastcgi, mod_fcgid, mod_proxy_fcgi.
Probably the maintainers of mod_fcgid/mod_fastcgi quit, and their successor didn't understand the code, so 
they wrote a new module :)

The mod_fastcgi module is the first and presumably still the best: it handles everything (and more) that 
mod_fcgid and mod_proxy_fcgi handle separately; the latter 2 each only handle one way of working.

But we can see how the wind blows, so we'd better get started on this multithreading approach :(

Michael.


More information about the fpc-pascal mailing list