Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(utils): yield to sleep only when the ngx.sleep is available (#11392)
### Summary Previously the sleeping was skipped only on phases `init` and `init_worker`, and on CLI, but there are a lot more phases in Nginx where the ngx.sleep is not allowed. This changes the `utils.yield` to skip `ngx.sleep`ing on such faces. I checked that there was as many phases where it was allowed as there was phases where it was disallowed, so I ended up with a list of where it is allowed as that is easier to update by just looking: https://github.com/openresty/lua-nginx-module#ngxsleep (+ the preread phase) Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
- Loading branch information
44ad22c
There was a problem hiding this comment.
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:44ad22c3c5bbf152b451ee764921b47c9df6c3a2
Artifacts available https://github.com/Kong/kong/actions/runs/5832414103