You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2002/05/29 22:39:17 UTC

cvs commit: apache-1.3/src/modules/proxy proxy_util.c

martin      02/05/29 13:39:16

  Modified:    src      CHANGES
               src/modules/proxy proxy_util.c
  Log:
  Fix a problem in mod_proxy: it would not set the number of bytes
  transferred, so other modules could not access the value from
  the request_rec->bytes_sent field.
  (And indeed, I also observed some time ago that the bytes_sent field was not set.)
  
  PR: 6841
  Submitted by:	Anthony Howe <achowe (at) snert.com>
  Reviewed by:	Martin Kraemer
  
  Revision  Changes    Path
  1.1824    +5 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1823
  retrieving revision 1.1824
  diff -u -r1.1823 -r1.1824
  --- CHANGES	29 May 2002 17:39:22 -0000	1.1823
  +++ CHANGES	29 May 2002 20:39:15 -0000	1.1824
  @@ -1,5 +1,10 @@
   Changes with Apache 1.3.25
   
  +  *) Fix a problem in mod_proxy: it would not set the number of bytes
  +     transferred, so other modules could not access the value from
  +     the request_rec->bytes_sent field.
  +     [Anthony Howe <achowe at snert.com>] PR#6841
  +
     *) Fix a problem in mod_rewrite which would lead to 400 Bad Request
        responses for rewriting rules which resulted in a local path.
        [Martin Kraemer]
  
  
  
  1.122     +3 -0      apache-1.3/src/modules/proxy/proxy_util.c
  
  Index: proxy_util.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/proxy/proxy_util.c,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -r1.121 -r1.122
  --- proxy_util.c	21 Apr 2002 11:35:08 -0000	1.121
  +++ proxy_util.c	29 May 2002 20:39:16 -0000	1.122
  @@ -693,6 +693,9 @@
       }
   
       ap_kill_timeout(r);
  +
  +    r->bytes_sent += total_bytes_rcvd;
  +
       return total_bytes_rcvd;
   }