Bug #766

mod_fastcgi.c emits zero-length FCGI_STDERR records

Added by Anonymous 863 days ago. Updated 475 days ago.

Status:Fixed Start:
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:mod_fastcgi
Target version:1.4.13
Pending:

No

Resolution:

fixed


Description

According to the FastCGI Specification:

If an application has no errors to report, it sends either no FCGI_STDERR records or one zero-length FCGI_STDERR record.

See section 6.1 Role Protocols - http://www.fastcgi.com/devkit/doc/fcgi-spec.html

mod_fastcgi.c will emit an empty error message in this case:

(mod_fastcgi.c.2536) FastCGI-stderr:

Instead it should not emit any message. I believe this is as simple as adding:

if (packet.len == 0) break;

just below "case FCGI_SERVER:" on line 2535. "case FCGI_STDOUT" deals with zero-length packets in this manner.

-- jay

mod_fastcgi-stderr.patch - patch to silence zero-length stderr packets -- jay (298 Bytes) Anonymous, 07/26/2006 12:44 AM

History

08/17/2007 11:38 PM - jan

  • Status changed from New to Fixed
  • Resolution set to fixed

this is fixed since 1.4.12.

Also available in: Atom PDF