Skip to content

Commit

Permalink
fix(pluginserver): handle socket timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Jul 26, 2024
1 parent c8c5877 commit 5a2f2d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kong/runloop/plugin_servers/pb_rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,11 @@ function Rpc:handle_event(plugin_name, conf, phase)
self.reset_instance(plugin_name, conf)
kong.log.warn(err)
return self:handle_event(plugin_name, conf, phase)
end

kong.log.err(err)
else
kong.log.err("pluginserver error: ", err or "unknown error")
kong.response.error(500)
end
end
end

Expand Down

1 comment on commit 5a2f2d5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:5a2f2d5723091969250a663c1d947b15239a1163
Artifacts available https://github.com/Kong/kong/actions/runs/10114602619

Please sign in to comment.