Skip to content

Commit

Permalink
fix(balancer) fix check to see if response was produced by upstream (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
onematchfox authored and bungle committed Jan 23, 2020
1 parent f664f75 commit 74559e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/runloop/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ return {
-- If response was produced by an upstream (ie, not by a Kong plugin)
-- Report HTTP status for health checks
local balancer_data = ctx.balancer_data
if balancer_data and balancer_data.balancer and balancer_data.ip then
if balancer_data and balancer_data.balancer_handle then
local status = ngx.status
if status == 504 then
balancer_data.balancer.report_timeout(balancer_data.balancer_handle)
Expand Down

0 comments on commit 74559e2

Please sign in to comment.