Description of problem
wtc race maybe cause zero worker thread here.
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.
Description of problem
wtc race maybe cause zero worker thread here.
ttrpc-rust/src/sync/server.rs
Line 111 in 152ac12
could reproduce it by add
sleep 1sbeforettrpc-rust/src/sync/server.rs
Line 112 in 152ac12
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.