Skip to content

[CNS] Possible goroutine leak in internalapi #855

@hex0punk

Description

@hex0punk

The goroutine on https://github.com/Azure/azure-container-networking/blob/master/cns/restserver/internalapi.go#L177-L180 could be leaked as a result of using an unbuffered channel.

If a timeout occurs, which would execute the case on https://github.com/Azure/azure-container-networking/blob/master/cns/restserver/internalapi.go#L203, goroutine on L177 would be blocked and therefore leak when the SyncHostNCVersion function returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions