-
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
Add a default timeout for OAuth2 Metadata Resolver #14056
Conversation
Currently, there is no timeout on the metadata resolver in oauth2 clients. This can result in a connection hanging indefintely. We should add sane defaults here. These defaults match the defaults of the TokenClient and generally the Pulsar defaults of 10s connect timeout and 30s read timeout
@addisonj:Thanks for your contribution. For this PR, do we need to update docs? |
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
## Motivation Currently, there is no timeout on the metadata resolver in oauth2 clients. This can result in a connection hanging indefintely. We should add sane defaults here. ## Modification These defaults match the defaults of the TokenClient and generally the Pulsar defaults of 10s connect timeout and 30s read timeout ## Test This seems to primarily depend on testing timeout of the java HTTP lib, so no test is likely needed. ## Doc This is a trivial change and doesn't require docs
## Motivation Currently, there is no timeout on the metadata resolver in oauth2 clients. This can result in a connection hanging indefintely. We should add sane defaults here. ## Modification These defaults match the defaults of the TokenClient and generally the Pulsar defaults of 10s connect timeout and 30s read timeout ## Test This seems to primarily depend on testing timeout of the java HTTP lib, so no test is likely needed. ## Doc This is a trivial change and doesn't require docs
## Motivation Currently, there is no timeout on the metadata resolver in oauth2 clients. This can result in a connection hanging indefintely. We should add sane defaults here. ## Modification These defaults match the defaults of the TokenClient and generally the Pulsar defaults of 10s connect timeout and 30s read timeout ## Test This seems to primarily depend on testing timeout of the java HTTP lib, so no test is likely needed. ## Doc This is a trivial change and doesn't require docs
When submitting a PR, can you provide doc-related info (tick the box) in the PR description? So that Bot can recognize and label your PR correspondingly. Or else Bot labels your PR with |
Currently, there is no timeout on the metadata resolver in oauth2
clients.
This can result in a connection hanging indefintely.
We should add sane defaults here.
These defaults match the defaults of the TokenClient and generally the
Pulsar defaults of 10s connect timeout and 30s read timeout
Test
This seems to primarily depend on testing timeout of the java HTTP lib, so no test is likely needed.
Doc
This is a trivial change and doesn't require docs