Skip to content

a potential data race occurs in the httpConfig field in rpcstack.go #32019

Closed
@ririli

Description

@ririli

Hi, I found out by static analysis that:
In the rpcstack.go file, there is a potential data race risk related to the h.ttpConfig field. Specifically:The h.httpConfig field is read/written 6 times.5 of these accesses are properly synchronized using h.mutex.RLock() or Lock().1 read operation L212 is not locked.So I think whether to add a lock to it for mutual exclusion.
Please could you help me to confirm this issue?

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