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

Update plaintext_poix transport interface #1742

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

chinglee-iot
Copy link
Member

@chinglee-iot chinglee-iot commented Nov 2, 2021

  • EAGAIN or EWOULDBLOCK should return zero to indicate this send or recv operation can be retried.
  • Use error code instead of assert to check the invalid parameters.

Reference this setsockopt document.

If a receive operation has blocked for this much time without receiving additional data, it shall return with a partial count or errno set to [EAGAIN] or [EWOULDBLOCK] if no data is received.

If a send operation has blocked for this time, it shall return with a partial count or with errno set to [EAGAIN] or [EWOULDBLOCK] if no data is sent.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

* EAGAIN or EWOULDBLOCK should return zero to indicate this operation
  can be retried.
@chinglee-iot chinglee-iot requested a review from a team as a code owner November 2, 2021 10:13
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