Skip to content

[sync/server] wtc race maybe cause zero worker thread #230

@yuqitao

Description

@yuqitao

Description of problem

wtc race maybe cause zero worker thread here.

if c > max {

could reproduce it by add sleep 1s before

wtc.fetch_sub(1, Ordering::SeqCst);

Expected result

There is at least one worker thread for the accepted socket fd.

Actual result

Mabye there is no worker thread for the accepted socket fd.

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