lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> You mean you can foresee a situation in which getaddrinfo would return
> an IPv6 as the preferred resolved address and yet your program would
> rather stick to the IPv4 address returned by gethostbyname, even if
> the IPv6 route connects successfully?

Sure, We have cases of websites resolving into IPv6 as default, and
the client configured to use local IPv6 (like Apple) but the route not
fully support v6. This results in a long timeout, until the
connections falls back to IPv4. The usual solution until we get the
whole campus network to support v6 is to disable v6 on the client. Not
sure if this is a problem to be solved in whatever Lua Application as
to get the SysAdmin to correctly configure v6 only if it is fully
supported by the network.