Skip to content

Unreleased semaphore blocks httprc indefinitely if a Transform panics #33

Open
@arseniocosta1

Description

@arseniocosta1

Description

The semaphore acquired here

httprc/cache.go

Line 155 in e71784b

e.acquireSem()
isn't released with a defer

If a Transform panics the semaphore is never released, and the next call to a Cache.Get will block indefinitely

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