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)
1594 1594
		switch (proxy_stream_encode_decode(srv, sess)) {
1595 1595
		case HANDLER_FINISHED:
1596 1596
		case HANDLER_GO_ON:
1597
			if (!sess->proxy_con->recv->is_closed && !sess->is_request_finished) {
1598
				return HANDLER_WAIT_FOR_EVENT;
1599
			}
1600 1597
			break;
1601 1598
		case HANDLER_ERROR:
1602 1599
			/* error */
......
1608 1605

  
1609 1606
		proxy_copy_response(srv, con, sess);
1610 1607

  
1608
		if (!sess->proxy_con->recv->is_closed && !sess->is_request_finished) {
1609
			return HANDLER_WAIT_FOR_EVENT;
1610
		}
1611
		
1611 1612
		if(sess->is_request_finished) {
1612 1613
			sess->recv->is_closed = 1;
1613 1614
			con->send->is_closed = 1;
    (1-1/1)