Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

transport: WrapConn goroutine leak #289

@Kulezi

Description

@Kulezi

If c.init() fails, the connection will never be closed, leading to leaked routines running in both connReader and connWriter loops.

go c.w.loop(ctx)
go c.r.loop()
if err := c.init(ctx); err != nil {
return c, err
}
return c, nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions