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

fix: handle socket hang up gracefully. #392

Merged
merged 1 commit into from
Dec 22, 2022
Merged

Conversation

ivarconr
Copy link
Member

If the SDK gets a socket hang up we will not get
a built in retry from make-fetch happen.

This fix will issue a new fetch in refreshInterval / 2 in order to handle this with a graceful feedback.

Copy link
Member

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

Nice!

If the SDK gets a socket hang up we will not get
a built in retry from make-fetch happen.

This fix will issue a new fetch in refreshInterval/2 in order to
handle this.
@ivarconr ivarconr force-pushed the fix/handle-socket-hangup branch from 80d855c to a177419 Compare December 22, 2022 13:46
@coveralls
Copy link

coveralls commented Dec 22, 2022

Coverage Status

Coverage decreased (-0.2%) to 92.25% when pulling a177419 on fix/handle-socket-hangup into c031cd7 on main.

@ivarconr ivarconr merged commit 0193044 into main Dec 22, 2022
@ivarconr ivarconr deleted the fix/handle-socket-hangup branch December 22, 2022 13:55
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.

None yet

3 participants