Skip to content

Handling of hosts resolving to multiple IPs #699

@dvarrazzo

Description

@dvarrazzo

Looking at libpq code, it seems that it resolves a hostname to all the ip addresses and then iterates on them.

In order to fix #674 we have to iterate on multiple hosts manually and move on after a timeout. As a consequence I think we should treat a hostname with multiple ips the same way, hence do hostname resolution in Python as we do in the async code.

We should make sure that we are able to do it properly and not having problems as reported in #695 (which hopefully was just a silly error already fixed).

I still heed to put together a test to prove that we have the issue.

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