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: Only retry connections on specific codes #84

Merged
merged 3 commits into from
Mar 17, 2023
Merged

fix: Only retry connections on specific codes #84

merged 3 commits into from
Mar 17, 2023

Conversation

cbaker6
Copy link
Member

@cbaker6 cbaker6 commented Mar 17, 2023

New Pull Request Checklist

Issue Description

The SDK was previously retrying connections after any type of error code up to max attempts. An issue that first popped up in #63

Approach

Only retry on specific error codes, otherwise return the current error. Provides a better solution than 63 which can mess with idempotency.

TODOs before merging

  • Add tests
  • Add entry to changelog

@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Merging #84 (57972a8) into main (c371d5d) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
- Coverage   90.50%   90.50%   -0.01%     
==========================================
  Files         169      169              
  Lines       15115    15123       +8     
==========================================
+ Hits        13680    13687       +7     
- Misses       1435     1436       +1     
Impacted Files Coverage Δ
Sources/ParseSwift/Extensions/URLSession.swift 83.28% <100.00%> (-0.05%) ⬇️
Sources/ParseSwift/Parse.swift 97.14% <100.00%> (+0.04%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@cbaker6 cbaker6 merged commit 8c7d8dc into main Mar 17, 2023
@cbaker6 cbaker6 deleted the idemp branch March 17, 2023 20:06
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.

1 participant