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

Better handle network errors #164

Merged
merged 8 commits into from
Jan 4, 2024
Merged

Better handle network errors #164

merged 8 commits into from
Jan 4, 2024

Conversation

sosthene-nitrokey
Copy link
Contributor

This PR adds a configurable timeout for connections. It also adds a configurable retry mechanism where the number of retries can be configured for each slot.

fix #156

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (931e120) 91.00% compared to head (19726d1) 90.96%.

Files Patch % Lines
pkcs11/src/backend/login.rs 80.64% 6 Missing ⚠️
pkcs11/src/backend/mod.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
- Coverage   91.00%   90.96%   -0.05%     
==========================================
  Files          30       30              
  Lines        6091     6130      +39     
==========================================
+ Hits         5543     5576      +33     
- Misses        548      554       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sosthene-nitrokey sosthene-nitrokey merged commit fb00052 into main Jan 4, 2024
3 of 5 checks passed
@sosthene-nitrokey sosthene-nitrokey deleted the network-error branch January 4, 2024 14:52
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.

Error Handling (Network Error) needs improvement - should reconnect
2 participants