FastCGI questions : FastCGI: incomplete headers (0 bytes)

"Vishal Singh" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hello,

I am using fcgi-2.4.0 and apache 2.2.0

I am facing the following problems.

a) The static application gives back the following
FastCGI: incomplete headers (0 bytes).

One of the threads in the application does exactly same as
tine-example.c as given below.
#include "fcgi_stdio.h"
#include <stdlib.h>

    void main(void)
    {
        int count = 0;
        int ret=5;
        printf("%d\n",ret);
        //while(1){
        while((ret=FCGI_Accept()) >= 0)

        printf("%s\n",getenv("LD_LIBRARY_PATH"));
            printf("Content-type: text/html\r\n"
                   "\r\n"
                   "<title>FastCGI Hello!</title>"
                   "<h1>FastCGI Hello!</h1>"
                   "Request number %d %d  running on host <i>%s</i>\n",
                    ++count,ret, getenv("SERVER_NAME"));
        //}
    }

When i have the above example standalone, it works fine.
When this is a part of the application and it is one of the threads of
the application, there is no response error :  FastCGI: incomplete
headers (0 bytes).
The response is not even printed in error_log.

Can someone suggest what should be changed or what is wrong?

B) I tried adding another application (dynamic one). The following is
in the httpd.conf

<IfModule mod_fastcgi.c>

    FastCgiServer /webserver/cgi-bin/sipua

   AddHandler fastcgi-script .fcg .fcgi .fpl
   FastCgiConfig

</IfModule>


And renamed the echo example to echo.fcgi in the cgi-bin directory.

I got the following error:
No such file or directory: FastCGI: failed to connect to (dynamic)
server "/webserver/cgi-bin/echo.fcgi": path
"/webserver/logs/fastcgi/dynamic/ff51babebe8d706968c40dcfcf7907c3" is
too long for a Domain socket
FastCGI: incomplete headers (0 bytes) received from server "
/webserver/cgi-bin/echo.fcgi"

Any ideas on what configuration is wrong.

Thanks in advance,
Vishal
___________________________________
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.