Reproduce step
- run Network Link Conditioner (macos app)
- set profile “100% loss” in Network Link Conditioner
- create a project with one component that contain next code:
function init(self)
print("before")
socket.dns.getaddrinfo("amazon.com")
print("after")
end
- Try to build the project.
Application hangs when try to call getaddrinfo with bad connection or problems on a host side. It’s one of the reason of ANRs on Android.
I checked on macOS and Android.