masc2008 opened a new pull request, #19960: URL: https://github.com/apache/nuttx/pull/19960
## Summary\n- defer UDP readiness until the datagram has been queued into \n- keep and existing immediate readahead checks unchanged\n- align / readiness with what can actually consume\n\n## Problem\n currently raises as soon as is seen in the callback path. However, the datagram is only queued into UDP read-ahead later in via . That allows a waiter to wake up before has consumable data buffered.\n\n## Fix\nThis change removes the early notification from and notifies UDP poll/select waiters only after has queued the datagram into .\n\n## Validation\nThis was validated on a downstream NuttX-based target by tracing the UDP callback path and confirming the ordering changed from:\n\n- poll/select wake\n- queue into read-ahead\n\nto:\n\n- queue into read-ahead\n- poll/select wake\n\nwhich eliminated an observed early-wakeup race on a loopback UDP control socket. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
