zephyr/subsys/net/lib/sockets
Robert Lubos 53561e3766 net: dns: Fix timeout calculation with DNS retransmissions
With recently introduced DNS retransmission mechanism, a certain bug
could occur when calculating query timeout.

If the time until the final DNS timeout (as indicated by
CONFIG_NET_SOCKETS_DNS_TIMEOUT) was less than 1 millisecond, the actual
millisecond timeout value was rounded down, resulting in 0 ms timeout.
This in order was interpreted as invalid argument by dns_get_addr_info()
function, so in result, instead of reporting query timeout, the function
reported invalid argument error.

Fix this by rounding the millisecond timeout up, instead of down, so
that in any case, if the final timeout is not due, we always provide
non-zero timeout to dns_get_addr_info().

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-12 15:13:31 -05:00
..
CMakeLists.txt net: sockets: Create a socket service API 2024-01-16 10:00:45 +01:00
getaddrinfo.c net: dns: Fix timeout calculation with DNS retransmissions 2024-03-12 15:13:31 -05:00
getnameinfo.c
Kconfig net: telnet: Switch TELNET shell backend to use sockets 2024-03-11 15:09:32 -05:00
socket_dispatcher.c
socket_obj_core.c net: sockets: Refactor accept() to support objcore better 2024-01-17 09:55:40 +01:00
socket_offload.c
socketpair.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sockets_can.c kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
sockets_internal.h net: sockets: Refactor accept() to support objcore better 2024-01-17 09:55:40 +01:00
sockets_misc.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sockets_net_mgmt.c net: socket: mgmt: Return error for poll 2024-02-28 09:39:27 +01:00
sockets_packet.c net: sockets: packet: Ignore the packet type if LL address is not set 2024-03-08 13:04:45 +00:00
sockets_select.c syscall: rename z_user_ to k_usermode_ 2023-11-03 11:46:52 +01:00
sockets_service.c net: sockets: Stick to NET_SOCKETS_POLL_MAX limit in socket services 2024-03-11 15:09:32 -05:00
sockets_tls.c net: sockets: tls: Improve sendmsg() support on DTLS sockets 2024-03-06 09:13:38 +01:00
sockets.c net: sockets: Update msg_controllen in recvmsg properly 2024-02-02 11:51:53 -06:00