You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/01/14 03:35:44 UTC

[GitHub] [incubator-nuttx-apps] yamt opened a new pull request #561: webclient: Add AF_LOCAL support

yamt opened a new pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561


   ## Summary
   webclient: Add AF_LOCAL support
   ## Impact
   
   ## Testing
   Tested against Docker Engine socket on macOS and Linux. (with a ported version of webclient)
   Only build-tested for NuttX.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557287383



##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +760,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)

Review comment:
       like this:
   ```
   #if defined(CONFIG_WEBCLIENT_NET_LOCAL)
             struct sockaddr_un server_un;
   #endif
             struct sockaddr_in server_in;
             int domain;
             const struct sockaddr *server_address;
             socklen_t server_address_len;
   
             /* Create a socket */
   #if defined(CONFIG_WEBCLIENT_NET_LOCAL)
             if (ctx->unix_socket != NULL)
               {
                 domain = PF_LOCAL;
                 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);
   #endif
                 server_address = (const struct sockaddr *)&server_un;
                 server_address_len = sizeof(server_un);
               }
             else
   #endif
               {
                 domain = PF_INET;
                 /* Get the server address from the host name */
   
                 server_in.sin_family = AF_INET;
                 server_in.sin_port   = htons(ws->port);
                 ret = wget_gethostip(ws->hostname, &server_in.sin_addr);
                 if (ret < 0)
                   {
                     /* Could not resolve host (or malformed IP address) */
   
                     nwarn("WARNING: Failed to resolve hostname\n");
                     ret = -EHOSTUNREACH;
                     goto errout_with_errno;
                   }
   
                 server_address = (const struct sockaddr *)&server_in;
                 server_address_len = sizeof(struct sockaddr_in);
               }
   ```




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557223407



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;

Review comment:
       why not reuse url for unix_socket?

##########
File path: netutils/webclient/webclient.c
##########
@@ -724,6 +724,15 @@ int webclient_perform(FAR struct webclient_context *ctx)
         {
           char port_str[sizeof("65535")];
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+          if (ctx->unix_socket != NULL)

Review comment:
       If unix_socket doesn't implement TLS, why isn't conn.tls zero in the first place and then the whole block skip at line 723?

##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+  FAR const char *unix_socket;

Review comment:
       who will set unix_socket? I don't find the related code.

##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +760,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)

Review comment:
       merge line 742-752




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 merged pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#issuecomment-761898544


   > > BTW, please merge all patches(except webclient: Don't call the sink callback if no data is available) into one.
   > 
   > i will squash them after testing with my local app.
   
   done


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#issuecomment-760687644


   BTW, please merge all patches(except webclient: Don't call the sink callback if no data is available) into one.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557241524



##########
File path: netutils/webclient/webclient.c
##########
@@ -724,6 +724,15 @@ int webclient_perform(FAR struct webclient_context *ctx)
         {
           char port_str[sizeof("65535")];
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+          if (ctx->unix_socket != NULL)

Review comment:
       to indicate the error to the user.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557244180



##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +760,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)

Review comment:
       what do you mean by "merge"?




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557825630



##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +760,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)

Review comment:
       No, we can save one #ifdef/#endif pair and unix_socket check.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557830349



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+  FAR const char *unix_socket;

Review comment:
       i named it after the curl option.
   ```
   --unix-socket PATH    Connect through this Unix domain socket
   ```
   
   how about `unix_socket_path` then?
   `unpath` sounds a bit cryptic to me.
   




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557243451



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;

Review comment:
       because url is still used for the http request.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557837333



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+  FAR const char *unix_socket;

Review comment:
       Ok, or unix_path.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557843591



##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +760,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)

Review comment:
       is this what you meant? https://github.com/apache/incubator-nuttx-apps/pull/561/commits/d61d23dd44a4aab892d22ecd0bc736eb631d31c1
   (not tested well)




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557772358



##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +760,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)

Review comment:
       do you mean to move the "prepare server_address" part before socket() call? why?
   the number of #ifdef is the same.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557829097



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+  FAR const char *unix_socket;

Review comment:
       change to unpath? socket normally reserve to handle.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557849077



##########
File path: netutils/webclient/webclient.c
##########
@@ -740,6 +760,40 @@ int webclient_perform(FAR struct webclient_context *ctx)
               return -errno;
             }
 
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)

Review comment:
       Yes.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557770258



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;

Review comment:
       the url contains hostname, path, query string, etc.
   they will be sent over the unix domain socket.
   (while the hostname is less meaningful for unix domain, we need to send something anyway.)
   




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557770421



##########
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:
       yes




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557242140



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+  FAR const char *unix_socket;

Review comment:
       the calling app.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557837333



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;
+#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
+  FAR const char *unix_socket;

Review comment:
       Ok.




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#discussion_r557286167



##########
File path: include/netutils/webclient.h
##########
@@ -191,13 +191,17 @@ struct webclient_context
    *   url          - A pointer to a string containing the full URL.
    *                  (e.g., http://www.nutt.org/index.html, or
    *                   http://192.168.23.1:80/index.html)
+   *   unix_socket  - If not NULL, the path to an AF_LOCAL socket.
    *   headers      - An array of pointers to the extra headers.
    *   nheaders     - The number of elements in the "headers" array.
    *   bodylen      - The size of the request body.
    */
 
   FAR const char *method;
   FAR const char *url;

Review comment:
       so how do you handle both url and unix_socket not NULL?




----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] yamt commented on pull request #561: webclient: Add AF_LOCAL support

Posted by GitBox <gi...@apache.org>.
yamt commented on pull request #561:
URL: https://github.com/apache/incubator-nuttx-apps/pull/561#issuecomment-760720438


   > BTW, please merge all patches(except webclient: Don't call the sink callback if no data is available) into one.
   
   i will squash them after testing with my local app.


----------------------------------------------------------------
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:
users@infra.apache.org