Skip to content

Connection timeout with multiple hosts #3619

Closed
Closed

Activity

  1. added this to the vNext milestone on Mar 28, 2021
  2. vonzshik commented on Mar 28, 2021

    @vonzshik
    Contributor

    From libpq connect_timeout:

    Maximum time to wait while connecting, in seconds (write as a decimal integer, e.g., 10).
    Zero, negative, or not specified means wait indefinitely.
    The minimum allowed timeout is 2 seconds, therefore a value of 1 is interpreted as 2.
    
    This timeout applies separately to each host name or IP address.
    For example, if you specify two hosts and connect_timeout is 5, each host will time out if no connection is made within 5 seconds, so the total time spent waiting for a connection might be up to 10 seconds.
    
  3. roji commented on Mar 28, 2021

    @roji
    MemberAuthor

    As discussed offline, we should just align with libpq on this - especially since dividing the global timeout per-host really isn't trivial.

  4. removed this from the vNext milestone on Mar 28, 2021
  5. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions