Bug #1006

only part of 206 content returned for mod_proxy_core

Added by qhy 702 days ago. Updated 696 days ago.

Status:Fixed Start:
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:core
Target version:-
Pending:

Resolution:

fixed


Description

config:


$HTTP["host"] == "xxx.com" {
        proxy-core.backends = ( "10.x.x.x:80")
}

test command:


curl -o /dev/null -v -H'Range: bytes=100-' http://xxx.com/yyyy

bug:
only first chunk of 206 content returned.

fix:


src/connections.c
@@ -323,7 +324,7 @@
         break;

     case 206: /* write_queue is already prepared */
-        con->send->is_closed = 1;
+        if (con->mode == DIRECT) con->send->is_closed = 1;

         break;
     case 205: /* class: header only */

Associated revisions

Revision 1633
Added by jan 696 days ago

fixed the content-length for Range requests from a proxy-backend (fixes #1006)

History

02/11/2007 10:03 AM - jan

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

fixed in r1633

Also available in: Atom PDF