-
Notifications
You must be signed in to change notification settings - Fork 3
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
Handle errors on request_shutdown #132
Conversation
UNUSED(dd_request_shutdown(conn)); | ||
int res = dd_request_shutdown(conn); | ||
if (res == dd_network) { | ||
mlog_g(dd_log_info, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be error instead of info?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's other error logs before getting here so these are fine as info.
Codecov Report
@@ Coverage Diff @@
## master #132 +/- ##
==========================================
+ Coverage 63.17% 69.19% +6.01%
==========================================
Files 63 21 -42
Lines 4253 2756 -1497
Branches 1286 632 -654
==========================================
- Hits 2687 1907 -780
+ Misses 815 515 -300
+ Partials 751 334 -417
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Description
When
request_shutdown
with side-effects was introduced, the appropriateRSHUTDOWN
code was not updated to handle errors. This simply requires closing the connection when a network error is received and log a message otherwise.Motivation
Additional Notes
Describe how to test your changes
Readiness checklist
Release checklist