Skip to content

DNS resolution hangs UDP for 10 sec on IPV6 networks #1022

Closed
@megacct

Description

@megacct

MbedUDP::beginPacket() hangs for over 10 seconds if IPV6 responses are received.

It is believed this is caused by gethostbyname() within SocketHelpers.cpp passing NSAPI_UNSPEC as the desired response type. Overriding with NSAPI_IPv4 eliminates the problem. Full details can be found here https://forum.arduino.cc/t/dns-resolution-hangs-udp-for-10-sec-on-ipv6-networks/1349444

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions