Very confusing error in cgi-fcgi "Line to long"

Olexiy Buyanskyy <[email protected]> Fri, 12 Mar 2010 17:06:52 -0500
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
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

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers