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.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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]