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

net/udp: Let cansend return EWOULDBLOCK when send buffer is full #117

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

wengzhe
Copy link
Member

@wengzhe wengzhe commented Jan 2, 2025

Summary

Notes:

  1. This commit does the same thing as TCP did: psock_tcp_cansend: return EWOULDBLOCK when send buffer is full apache/nuttx#10627
  2. UDP uses iob_navail(false) but TCP uses iob_navail(true), this is because of a problem related to TCP recv window (tcp_send_buffered: throttle IOB allocations for send apache/nuttx#4142), so we don't need to change UDP now.

Impact

UDP

Testing

SIM

Notes:
1. This commit do the same thing as TCP did: apache/nuttx#10627
2. UDP uses `iob_navail(false)` but TCP uses `iob_navail(true)`, this is because of a problem related to TCP recv window (apache/nuttx#4142), so we don't need to change UDP now.

Signed-off-by: Zhe Weng <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit 886b986 into open-vela:dev Jan 2, 2025
3 checks passed
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.

2 participants