Skip to content

Pool::disconnect waits forever, how to disconnect correctly?  #199

@heavycharged

Description

@heavycharged

Hi, i am beginner in Rust, trying to write some small app. I trying to create graceful shutdown for my app, and i ran into problem when Pool::disconnect waits forever. Docs states that it will waits until all taken conns are dropped, but i cannot understand why the Conn is not dropped. I've created a MRE. Can someone check and explain me where i went wrong? Thanks.

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