yjq91115 commented on code in PR #15069:
URL: https://github.com/apache/nuttx/pull/15069#discussion_r1875793960


##########
libs/libc/netdb/Kconfig:
##########
@@ -237,6 +237,11 @@ config NETDB_DNSSERVER_IPv4ADDR
                Default DNS server IPv4 address in host byte order.  Default 
value
                10.0.0.1.  This may be changed via dns_add_nameserver().
 
+config NETDB_DNS_STREAM

Review Comment:
   When DNS resolution returns the truncate response, this function will 
establish TCP connection and return the complete response. However, the 
complete response can easily exceed the RECV_BUFFER_SIZE, causing the 
resolution to fail, so I wrote a simple solution to solve this problem. There 
are two better solutions. One is to recycle the buffer and finally splice the 
buffer. The second is to use molloc to create a length that matches the 
response. I would like to ask if there is a better solution. @yamt 
   ![ping 
failed](https://github.com/user-attachments/assets/4ff7db09-a4e0-45ec-9630-724f0c887a67)
   [ping 
failed.log](https://github.com/user-attachments/files/18060459/ping.failed.log)
   



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

Reply via email to