xiaoxiang781216 commented on code in PR #11107: URL: https://github.com/apache/nuttx/pull/11107#discussion_r1377938070
########## net/socket/socket.c: ########## @@ -104,9 +104,11 @@ int psock_socket(int domain, int type, int protocol, /* When usrsock daemon returns -ENOSYS or -ENOTSUP, it means to use * kernel's network stack, so fallback to kernel socket. + * When -ENETDOWN is returned, it means the usrsock daemon was never + * launched or is no longer running, so fallback to kernel socket. */ - if (ret == 0 || (ret != -ENOSYS && ret != -ENOTSUP)) + if (ret == 0 || (ret != -ENOSYS && ret != -ENOTSUP && ret != -ENETDOWN)) Review Comment: since -ENETDOWN return in other case, should we change the errror code to -ENOSYS/-ENOTSUP if the server doesn't launch yet? -- 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