Skip to content

Socket provider retry policy #170

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

Merged
merged 1 commit into from
May 16, 2019

Conversation

nicktorwald
Copy link

Relax a socket provider contract. Now socket provider can throw a
transient error and the client will try to obtain a socket again instead
of being closed.

Make built-in socket providers configurable. Now the client can set
retries count and connection timeout for providers.

Update README doc im scope of new socket provider contract.

Closes: #167
Follows on: #144

@nicktorwald nicktorwald requested a review from Totktonada April 24, 2019 17:47
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-167-socket-provider-timeout branch 2 times, most recently from 6745179 to dcf562b Compare April 24, 2019 17:58
@coveralls
Copy link

coveralls commented Apr 24, 2019

Coverage Status

Coverage increased (+0.05%) to 69.885% when pulling 9729f0b on nicktorwald/gh-167-socket-provider-timeout into 0ee7b30 on master.

Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

It is WIP or already no?

I looked briefly, some comments are below.

@nicktorwald nicktorwald force-pushed the nicktorwald/gh-167-socket-provider-timeout branch 2 times, most recently from 8084884 to fe6bdbb Compare May 14, 2019 16:57
@Totktonada
Copy link
Member

I give minor comments, but the PR is okay for me in general.

@akudiyar Can you check the README changes and approve that the new timeout / retry strategy is okay for you?

@nicktorwald nicktorwald changed the title WIP: Socket provider retry policy Socket provider retry policy May 15, 2019
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-167-socket-provider-timeout branch from fe6bdbb to f960c18 Compare May 15, 2019 08:20
Relax a socket provider contract. Now socket provider can throw a
transient error and the client will try to obtain a socket again instead
of being closed.

Make built-in socket providers configurable. Now the client can set
retries count and connection timeout for providers.

Update README doc im scope of new socket provider contract.

Closes: #167
Follows on: #144
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-167-socket-provider-timeout branch from f960c18 to 9729f0b Compare May 15, 2019 16:34
@akudiyar
Copy link

@Totktonada all changes are OK

@Totktonada Totktonada merged commit 3e6b15c into master May 16, 2019
@Totktonada Totktonada deleted the nicktorwald/gh-167-socket-provider-timeout branch May 16, 2019 20:47
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.

Apply connection timeout for each connect attempt
4 participants