Skip to content

Commit

Permalink
Latency in the body filter is being calculated for every chunk, and n…
Browse files Browse the repository at this point in the history
…ot just for the first one
  • Loading branch information
subnetmarco committed Jun 25, 2015
1 parent f5e4ca6 commit c573db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/kong.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function _M.exec_plugins_body_filter()
end
end
end
ngx.ctx.kong_processing_body_filter = get_now() - start
ngx.ctx.kong_processing_body_filter = (ngx.ctx.kong_processing_body_filter or 0) + (get_now() - start)
end

-- Calls `log()` on every loaded plugin
Expand Down

0 comments on commit c573db8

Please sign in to comment.