Bug #1006

only part of 206 content returned for mod_proxy_core

Added by qhy over 3 years ago. Updated over 3 years ago.

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

0%

Category:core
Target version:-
Missing in 1.5.x:

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 over 3 years ago

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

History

Updated by jan over 3 years ago

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

fixed in r1633

Also available in: Atom