Skip to content
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 connect_timeout option for Schema Registry #197

Merged
merged 3 commits into from
Sep 7, 2023
Merged

Add connect_timeout option for Schema Registry #197

merged 3 commits into from
Sep 7, 2023

Conversation

bruno-b-martins
Copy link
Contributor

@bruno-b-martins bruno-b-martins commented Sep 5, 2023

Hey there 👋

I'm creating this PR to add the ability of setting Excon's timeout connection option.

With this ability I wish to set a smaller timeout in case the schema registry is unavailable, so that we can have a "fail fast" approach.
I'd rather set the timeout to something like 10 seconds and retry 5 times, rather than having a timeout of 60 seconds (default value) with only 1 attempt.

Please feel free to provide any feedback you deem relevant.

Thanks 😁


Notes:
This was discussed in the past in #62.
My first PR (#196) had a different, not optimal, approach as noted by @dasch.

dasch
dasch previously approved these changes Sep 6, 2023
Copy link
Owner

@dasch dasch left a comment

Choose a reason for hiding this comment

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

Can you also add an entry in the changelog?

@dasch
Copy link
Owner

dasch commented Sep 7, 2023

Thank you!

@dasch dasch merged commit afdd14b into dasch:master Sep 7, 2023
@bruno-b-martins bruno-b-martins deleted the add-connection-options branch September 7, 2023 09:38
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.

2 participants