Project

General

Profile

Bug #131

FastCGI FCGI_STDOUT before FCGI_STDIN bug

Added by Anonymous over 12 years ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_fastcgi
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

The FastCGI specification (http://www.fastcgi.com/devkit/doc/fcgi-spec.html) says: @`@The application must wait to finish reading FCGI_PARAMS before it begins writing FCGI_STDOUT and FCGI_STDERR, but it needn't finish reading from FCGI_STDIN before it begins writing these two streams''.

lighttpd fails to comply to the specification, because it wants to send FCGI_STDIN before it accepts FCGI_STDOUT.

-- pts


Related issues

Related to Bug #2566: mod_fastcgi should handle "quick" responsesFixed2014-04-02

Associated revisions

Revision 2f21aaa9 (diff)
Added by gstrauss over 1 year ago

handlers can read response before sending req body (fixes #131, #2566)

dynamic handlers mod_fastcgi, mod_scgi, and mod_proxy can now read
response from backend prior to finishing sending request body.

If the backend closes the connections (or shuts down socket write
end so that lighttpd read() 0 to indicate EOF), then lighttpd will
abort attempting to send request body to backend.

x-ref:
"mod_fastcgi should handle "quick" responses"
https://redmine.lighttpd.net/issues/2566
"FastCGI FCGI_STDOUT before FCGI_STDIN bug"
https://redmine.lighttpd.net/issues/131

History

#1

Updated by conny almost 12 years ago

Confirmation needed - is this still present as a bug?

#2

Updated by jan almost 12 years ago

yes, this is still present.

#3

Updated by gstrauss over 1 year ago

  • Related to Bug #2566: mod_fastcgi should handle "quick" responses added
#4

Updated by gstrauss over 1 year ago

  • Description updated (diff)
  • Status changed from New to Patch Pending
  • Assignee deleted (jan)
  • Target version set to 1.4.40
#5

Updated by gstrauss over 1 year ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom