-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[C++]Fix libcurl miss auth header when broker return 307 #13112
Conversation
@billowqiu:Thanks for your contribution. For this PR, do we need to update docs? |
cc @BewareMyPower PTAL thanks |
Please use clang-format-5.0 to reformat your code first. |
@billowqiu:Thanks for providing doc info! |
Co-authored-by: Yunze Xu <xyzinfernity@163.com>
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.
LGTM
* [C++]Fix libcurl miss auth header when broker return 307 Motivation when broker restart, it will return 307 to client for lookup request. but libcurl miss auth heander when follow new url which will issue the follow lookup req fail with 401. Modifications don't use libcurl CURLOPT_FOLLOWLOCATION to follow new url, instead use retry request with auth header.
* [C++]Fix libcurl miss auth header when broker return 307 Motivation when broker restart, it will return 307 to client for lookup request. but libcurl miss auth heander when follow new url which will issue the follow lookup req fail with 401. Modifications don't use libcurl CURLOPT_FOLLOWLOCATION to follow new url, instead use retry request with auth header.
* [C++]Fix libcurl miss auth header when broker return 307 Motivation when broker restart, it will return 307 to client for lookup request. but libcurl miss auth heander when follow new url which will issue the follow lookup req fail with 401. Modifications don't use libcurl CURLOPT_FOLLOWLOCATION to follow new url, instead use retry request with auth header. (cherry picked from commit dd8b473)
Fixes #12888
Motivation
when broker restart, it will return 307 to client for lookup request.
but libcurl miss auth heander when follow new url which will issue the follow lookup req fail with 401.
Modifications
don't use libcurl CURLOPT_FOLLOWLOCATION to follow new url, instead use retry request with auth header.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
no-need-doc