Project

General

Profile

Bug #1069

*PATCH* mod_proxy_core doesn't stream response.

Added by jwmcglynn almost 13 years ago. Updated almost 13 years ago.

Status:
Fixed
Priority:
High
Assignee:
-
Category:
mod_proxy_core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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
#1

Updated by jan almost 13 years ago

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

applied in r1776

Also available in: Atom