|
|||||||||||
|
DO NOT REPLY [Bug 10515] - cgi lock when writing to stderr
From: <bugzilla(at)apache.org>
Date: Wed Aug 21 2002 - 21:31:56 EDT
cgi lock when writing to stderr
"Deferring your stderr logging until the entire body is read and the entire response is written." doesn't work for large scripts, sites, development environments, etc. Also, this system will hang with as little as 4k of std_err action at leasr on RH 6.soemthing, apache 2.0.40... FreeBSD seems immune to this wackyness....
for example:
#define SIZE 4075
void out_err()
char buffer[SIZE]; int i = 0; for (i = 0; i < SIZE - 1; ++i) buffer[i] = 'a' + (char )(i % 26); buffer[SIZE - 1] = '\0';
//
fprintf(stderr, "short test\n"); fflush(stderr); fprintf(stderr, "test error=%s\n", buffer); fflush(stderr); } // out_err()
int main(int argc, char ** argv)
fprintf(stdout, "Context-Type: text/html\r\n"); fprintf(stdout, "\r\n\r\n"); out_err(); fprintf(stdout, "\n"); fprintf(stdout, "\n"); fprintf(stdout, " } // main() To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org Received on Thu Aug 22 01:31:22 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:43:50 EDT |
||||||||||
|
|||||||||||