-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ext-plugin): implement the http-req-call protocol #4183
Conversation
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
PROPFIND = a6_method.PROPFIND, | ||
PROPPATCH = a6_method.PROPPATCH, | ||
LOCK = a6_method.LOCK, | ||
UNLOCK = a6_method.UNLOCK, |
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.
Is this type reserved for the future? If yes, is there any documentation?
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.
Those fields are copied from https://github.com/openresty/lua-nginx-module#http-method-constants
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.
got it, many thanks for explaining
local id = lshift(wid, 22) + count | ||
count = count + 1 | ||
if count == MAX_COUNT then | ||
count = 0 |
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.
Does the id rotate will influence the correctness?
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.
The id here is only used for logging purpose. In the given time window, it is rare to have two repeated id so we can distinguish them.
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.
OK.
Signed-off-by: spacewander spacewanderlzx@gmail.com
What this PR does / why we need it:
Pre-submission checklist: