Skip to content

TimeoutException after 0:00:15.000000: Pool deadlock: all resources have been allocated for too long. #414

Closed
@davidmartos96

Description

@davidmartos96

Hello!
On our low traffic staging environment we started to notice that the postgres will hang after a while. The thrown error is a Timeout error from the pool package

https://github.com/dart-lang/pool/blob/bf27900420ba382b6e5c0484ab3c79daad703dcd/lib/pool.dart#L329

I'm assuming that the reason is the following timeouts. Does the settings.connectTimeout match the Pool API timeout intentions? Maybe they mean different things here. Pool mentions that it will throw if there is no activity, which might not be what we want in the postgres side.

/// If [timeout] is passed, then if that much time passes without any activity
/// all pending [request] futures will throw a [TimeoutException]. This is
/// intended to avoid deadlocks.

Image

postgres version 3.4.8

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