Project

General

Profile

Bug #1069 ยป lighttpd-proxy-core-stream.patch

lighttpd-proxy-core-stream.patch - jwmcglynn, 2007-03-05 02:33

View differences:

src/mod_proxy_core.c (working copy)
switch (proxy_stream_encode_decode(srv, sess)) {
case HANDLER_FINISHED:
case HANDLER_GO_ON:
if (!sess->proxy_con->recv->is_closed && !sess->is_request_finished) {
return HANDLER_WAIT_FOR_EVENT;
}
break;
case HANDLER_ERROR:
/* error */
......
proxy_copy_response(srv, con, sess);
if (!sess->proxy_con->recv->is_closed && !sess->is_request_finished) {
return HANDLER_WAIT_FOR_EVENT;
}
if(sess->is_request_finished) {
sess->recv->is_closed = 1;
con->send->is_closed = 1;
    (1-1/1)