Skip to content

Possible deadlock condition in session.go #25

@axionbuster

Description

@axionbuster

configuration.RegistryPacketsMutex.Lock()
for _, packet := range configuration.RegistryPackets {
if err := session.WritePacket(packet); err != nil {
return err
}
session.registryIndexes[packet.RegistryId] = slices.Clone(packet.Indexes)
}
configuration.RegistryPacketsMutex.Unlock()

Improper handling of the error may lead to a deadlock by forgetting to unlock the mutex.

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