Accepts new FastCGI connection (blocking). The function returns
.false.
on error.
The function accepts a new request from the HTTP server and creates a CGI-compatible execution environment for the request.
If the application was invoked as a CGI program, the first call to
dm_fcgi_accept()
is essentially a no-op and the second call returns
.false.
. This causes a correctly coded FastCGI Responder
application to run a single request and exit, giving CGI behaviour.
If the application was invoked as a FastCGI server, the first call to the function indicates that the application has completed its initialisation and is ready to accept its first request. Subsequent calls indicate that the application has completed processing its current request and is ready to accept a new request.
In completing the current request, the called FastCGI function may detect errors, e.g. a broken pipe to a client who has disconnected early. The API function ignores such errors.