Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuqitao opened this issue Jul 1, 2024 · 0 comments
Open

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

yuqitao opened this issue Jul 1, 2024 · 0 comments

Comments

@yuqitao
Copy link
Contributor

yuqitao commented Jul 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant