Skip to content

transport: WrapConn goroutine leak #289

Open
@Kulezi

Description

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

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