Skip to content

Race condition in updating snode->counter #27

@tle211212

Description

@tle211212

When I run nginx with multiple worker, after some time, new request gets timeout. The timeout time equals the value set for this module configuration. However the stuck up does not happen if nginx runs with only 1 worker.

In the source code, the snode->counter is either changed by ngx_atomic_fetch_add(&snode->counter, 1) or by ++/-- directly. I believe this causes the race condition issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions