On Thu, 29 Jan 2015, silvioprog wrote:

Hello,

Using the TCustomHTTPApplication class, I just set the "Threaded" property to 
true, and my application works in threaded mode. But,
how to do the same in TCustomFCgiApplication class?


This is currently not supported.

If you use fastcgi in classical environment, the Apache webserver will start as many instances of the fastcgi executable as it considers necessary to handle the load.

Only if you use proxy fastcgi (i.e. a separately running binary listening on a fixed port, not started in Apache), then threading may be useful.

To support threading requires a major rework of the fastcgi implementation, and probably also changes to fpweb (which is not thread-safe).

This is on my todo list, but you are free to try and supply a patch.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to