xiaoxiang781216 commented on a change in pull request #561:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557287757



##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +769,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+          if (ctx->unix_socket != NULL)
+            {
+              memset(&server_un, 0, sizeof(server_un));
+              server_un.sun_family = AF_LOCAL;
+              strncpy(server_un.sun_path, ctx->unix_socket,
+                      sizeof(server_un.sun_path));
+#if !defined(__NuttX__) && !defined(__linux__)
+              server_un.sun_len = SUN_LEN(&server_un);

Review comment:
       BTW, do we really need set sun_len on macOS?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to