Skip to content

Additional ClientTimeout parameter support on async API calls - sock_read, sock_connect #336

Closed
@suhjohn

Description

@suhjohn

Describe the feature or improvement you're requesting

Want a logic to retry API if sock_read on stream is not working in <2 seconds. Sometimes this happens on a web-server due to various issues with the requesting library (requests.request / aiohttp). Currently only

            timeout = aiohttp.ClientTimeout(
                connect=request_timeout[0],
                total=request_timeout[1],
            )

is supported. Perhaps accepting additional lengths on request_timeout, or adding a new kwarg for timeout object, or accepting a dictionary instead a tuple on request_timeout would be helpful.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed in v1Issues addressed by the v1 beta

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions