Skip to content

Hard limit of 5s to wait for a channel? #71

Description

@brettrp

During some load testing for our application, I ran into crashes like the following when calling ExRabbitPool.with_channel:

{:timeout, {GenServer, :call, [#PID<0.2333.0>, :checkout_channel, 5000]}}" (elixir 1.11.2) lib/gen_server.ex:1027: GenServer.call/3

This is because the default timeout for the synchronous GenServer.call/3 for :checkout_channel is 5000ms.

I'm not sure whether this is intended behaviour, or whether the timeout for getting a channel should be configurable, or possibly whether that call should be asynchronous along with a configurable timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions