[FASTCGI] Very confusing error in cgi-fcgi "Line to long"
Olexiy Buyanskyy
olexiyb at gmail.com
Fri Mar 12 17:06:52 EST 2010
Hello,
Code below http://www.fastcgi.com/cvs/fcgi2/cgi-fcgi/cgi-fcgi.c
if((tp1 = (char *) strrchr(line,'\n')) != NULL) {
*tp1-- = 0;
while(*tp1 == ' ' || *tp1 =='\t') {
*tp1-- = 0;
}
} else {
fprintf(stderr, "Line to long\n");
return 1;
}
Requires carriage return. I used example from man page
http://www.fastcgi.com/devkit/doc/cgi-fcgi.1
#! /bin/cgi-fcgi -f
-connect /httpd/root/sock/app /httpd/root/bin/app <CARRIAGE_RETURN>
I think code has to be fixed or documentation updated, because without
<CARRIAGE_RETURN> example does not work.
--
Olexiy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20100312/98d3fcbe/attachment.html>
More information about the FastCGI-developers
mailing list