Remote FastCGI server and Apache on Windows and persistent TCP/IP connections

Jose Adriano Baltieri <jabaltie-a/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Organization UNIMEP
Message-ID <[email protected]>
I finally managed to set up Apache on Windows with a Remote FastCGI 
configuration.

The trick is that the FastCGI module is only valid up to version 2.0 of 
Apache. So, never try it with 2.2.2. It wont work.

On the httpd.conf, I added two lines like this :

LoadModule fastcgi_module modules/mod_fastcgi.dll
FastCgiExternalServer c:\apache2\htdocs\test.rfcgi -host localhost:101 -appConnTimeout 30 -idle-timeout 30


Anyway, the problem is :

Apache (or the FastCGI module) opens and closes a TCP/IP connection with 
the Remote FastCGI server for each transaction (hit).

Is it supposed to be like that ?

Wouldn't be more clever to keep the TCP/IP connection opened ?

Why is this a problem for me ? Because as I posted before, I'm writing 
my own FastCGI server. My idea was to create a thread for each 
connection and only release that thread when the tcp/ip connection were 
gone.

However, since Apache opens/close all the time, I'll create/destroy 
threads all the time (as well as the tcp/ip connections).

I dont think that's much better than a CGI...

-- 
Obrigado,
------------------------------------------------------------------------------
                Jose Adriano Baltieri - Analista de Sistemas
                DTI - CENTRO - UNIMEP - Universidade Metodista de Piracicaba
                PIRACICABA - SP - Brasil - Fone : (19) 3124-1858
------------------------------------------------------------------------------

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.