-
Notifications
You must be signed in to change notification settings - Fork 326
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 EAGAIN and EWOULDBLOCK from sendTo #279
Conversation
Codecov Report
@@ Coverage Diff @@
## master #279 +/- ##
=========================================
- Coverage 87.06% 86.87% -0.2%
=========================================
Files 33 33
Lines 7964 7978 +14
=========================================
- Hits 6934 6931 -3
- Misses 1030 1047 +17
Continue to review full report at Codecov.
|
if (result > 0) { | ||
result = sendto(pSocketConnection->localSocket, pBuf, bufLen, 0, destAddr, addrLen); | ||
} else if (result == 0) { | ||
DLOGD("select() timed out"); |
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.
Are these WARNS? I see you have DLOGD here but in the else below you have DLOGE. See whether this is indeed an DLOGE or DLOGW.
Also, in case of DLOGE you could use CHK_ERR.
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.
I think all these should be DLOGD cuz higher layer should to agnostic to send failures.
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.
That's what I thought. In that case, please make the other DLOGD
919d09a
to
63d94a2
Compare
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.
Looks good. The comments prior to this were minor
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.