Skip to content

Why is ClientPolicy.Timeout used to create new connections during reads instead of basePolicy.connectTimeout #408

@juanma9613

Description

@juanma9613

Hi, I would like to know why the clientPolicy.Timeout is applied when creating new connections for the pool during the read operation when the pool is empty or exhausted. This is the line where it is happening.

It's happening exactly when this line is executed and there are no available connections.
record, err := c.Aerospike.Get(readPolicy, key)

I ask because the java client in its read policy has a very specific connectTimeout that is used to create new connections during read operations.

Is there a way to achieve this same behavior without modifying the clientPolicy.Timeout?

Thank you very much for your response.

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