dlizewski opened a new pull request, #11107: URL: https://github.com/apache/nuttx/pull/11107
## Summary #9647 added the ability to do runtime selection of usrsock and fallback to kernel provided sockets, but the problem is that it currently requires the application side usrsock daemon to be running in order to respond with -ENOSYS or -ENOTSUP. There is already code in usrsock that checks if there is an application side daemon listening and returns -ENETDOWN if nothing is listening. Specifically in "usrsock_request" in drivers/usrsock/usrsock_dev.c Enabling fallback to kernel socket with -ENETDOWN allows the application to not launch the usrsock daemon when not needed. Otherwise my application needs to keep the daemon running for the sole purpose of saying it's off wasting resources. This was likely the original intention of original author based on the comment in "usrsock_sockif_setup" which says: ``` /* Let the user socket logic handle the setup... * * A return value of zero means that the operation was * successfully handled by usrsock. A negative value means that * an error occurred. The special error value -ENETDOWN means * that usrsock daemon is not running. The caller should attempt * to open socket with kernel networking stack in this case. */ ``` ## Impact ## Testing -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org