Skip to content

Request Timeout V Network Timeout #741

@ydawant

Description

@ydawant

I'm not sure if this is the best place to bring this up, but I'm having some issues being able to differentiate a network timeout from a request timeout.

Is there a way to set the connection timeout separate from the request timeout?

Basically I want to be able to set different thresholds for when a node is not responding at all (which would result in a ConnectTimeout to one in which the request is just taking too long to process ReadTimeout

ConnectTimeout: HTTPConnectionPool(host=<host>, port=9200): Max retries exceeded with url: /_bulk (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f44f2c8f510>, 'Connection to <node> timed out. (connect timeout=10)'))

v

ReadTimeout: HTTPConnectionPool(host=<host> port=9200): Read timed out. (read timeout=10)

I'd like to set connect_timeout = 1 and read_timeout = 20

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