Project

General

Profile

Actions

Bug #1069

closed

*PATCH* mod_proxy_core doesn't stream response.

Added by jwmcglynn about 17 years ago. Updated almost 17 years ago.

Status:
Fixed
Priority:
High
Category:
mod_proxy_core
Target version:
ASK QUESTIONS IN Forums:

Description

mod_proxy_core.c has a problem where only the FCGI_STDOUT containing the header is sent to the user agent while the request is in progress. Any further response packets were sent only after the request had ended.

The problem occurs in the PROXY_STATE_READ_RESPONSE_BODY state. If the request has not ended HANDLER_WAIT_FOR_EVENT is returned before adding new data to the send queue:


if (!sess->proxy_con->recv->is_closed && !sess->is_request_finished) {
    return HANDLER_WAIT_FOR_EVENT;
}

My patch simply moves this block of code directly after where the data is added to the send queue.


Files

lighttpd-proxy-core-stream.patch (748 Bytes) lighttpd-proxy-core-stream.patch lighttpd-proxy-core-stream.patch jwmcglynn, 2007-03-05 02:33
Actions #1

Updated by jan almost 17 years ago

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

applied in r1776

Actions

Also available in: Atom