Skip to content

Resolving reverse DNS is slow #39

@cobarx

Description

@cobarx

On some devices (original Moto G, Galaxy S4) the reverse DNS lookup that takes place in TcpSockets.onConnect is exceedingly slow, taking about 10 seconds. Can this be changed to skip the reverse DNS lookup and always return an IP address?

Unless there is some reason that it needs to return the host name, the following change should handle the issue.
addressParams.putString("address", address.getHostName());
to
addressParams.putString("address", address.getHostString());

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