fastcgi, iostream, vector
Jean-Christophe Roux <jcxxr-/[email protected]> Sat, 12 Jun 2010 20:58:13 -0700 (PDT)
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I am using fastcgi on a Centos 5 box with nginx.
The following program compiles (g++) and runs properly from the command line but it fails when run through a browser:
The error in the logs is something like: upstream closed prematurely FastCGI stdout while reading response header from upstream
If, instead of <iostream>, I include <vector> the failure is the same.
I don't quite understand what the problem is. Could someone explain me the problem or points me to a good reference on it.
Thank you
1 #include "/usr/local/include/fcgi_stdio.h"
2 #include <stdlib.h>
3 #include <iostream>
4
5 int main(void)
6 {
7 while (FCGI_Accept() >= 0)
8 {
9 printf("Content-type: text/html\n\n");
10 printf("hello");
11 }
12 return EXIT_SUCCESS;
13 }
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers