Skip to content

Commit e8548e6

Browse files
rluboscfriedt
authored andcommitted
net: sockets: Reserve a default heap space for getaddrinfo
Add a default heap reservation for gettaddrinfo(), enough for a single function call in a default configuration on 64-bit platform. Signed-off-by: Robert Lubos <[email protected]>
1 parent fd8035e commit e8548e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

subsys/net/lib/sockets/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ config NET_SOCKETS_DNS_BACKOFF_INTERVAL
6969
If no reply is received, a 3rd query is done after 15 sec (5 + 5 * 2),
7070
and the timeout is set to 2 sec so that the total timeout is 17 seconds.
7171

72+
config HEAP_MEM_POOL_ADD_SIZE_GETADDRINFO
73+
# Defaults to heap memory needed for a single getaddrinfo() call in
74+
# a default configuration on 64-bit platform
75+
int
76+
default 280
77+
depends on DNS_RESOLVER
78+
7279
config NET_SOCKET_MAX_SEND_WAIT
7380
int "Max time in milliseconds waiting for a send command"
7481
default 10000

0 commit comments

Comments
 (0)