I've a nginx server which is passing requests via /var/run/fcgiwrap.socket
location /bin {
root /var/www/;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
My C program is calling FCGI_accept() in a while loop.
while (FCGI_Accept() >= 0) {
blah
}
When I hit the nginx server with my request it works once then FCGI-Accept ruturns -1 and that means the process is respawning every time I make a request.
Is there a way to have tohave fcgiwrap honour the Accept for the next call?