Skip to content

Child FCGI process keeps respawning after each request #58

@Dweller

Description

@Dweller

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions