Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Fix bodybytes reporting when streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mbgrydeland committed Dec 8, 2011
1 parent 52c50df commit df08c81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/varnishd/cache_response.c
Expand Up @@ -459,6 +459,7 @@ RES_StreamWrite(const struct sess *sp)
sctx->obuf, sctx->obuf_len, &sctx->obuf_ptr);
} else {
(void)WRW_Write(sp->wrk, ptr, l2);
sp->wrk->acct_tmp.bodybytes += l2;
}
sctx->stream_next += l2;
if (sctx->stream_next == sctx->stream_max)
Expand Down

0 comments on commit df08c81

Please sign in to comment.