Skip to content

Conversation

@chriskuehl
Copy link
Contributor

I hereby grant the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.


We recently implemented a new ngx.timer.every timer in our codebase and didn't realize that the calling conventions of ngx.timer.every's callback also include the premature argument. When we were implementing the feature, we actually interpreted the docs such that we thought premature was only used for at timers.

Here's a quick clarification to those docs to make clear that the way the callback is called is the same as for ngx.timer.at.

1. timer will be created every `delay` seconds until the current Nginx worker process starts exiting.

Like [ngx.timer.at](#ngxtimerat), the `callback` argument will be called
automatically with the arguments `premature`, `user_arg1`, `user_arg2`, etc.
Copy link
Member

Choose a reason for hiding this comment

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

Please do not edit this file directly. Instead, make your edits to the HttpLuaModule.wiki file, and generate the README file with the wiki2markdown.pl utility.

@doujiang24
Copy link
Member

@chriskuehl I have synced your changes to the HttpLuaModule.wiki file and already merged it, thanks for your contribution.

@doujiang24 doujiang24 closed this Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants