You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ignore client messages after stopping the IO task (#1126)
This protects us from a subtle race condition:
- The main task decides to stop the client task (e.g. because we've hit `IO_OUTSTANDING_MAX`)
- It sends a stop request down the `tokio::sync::oneshot` channel
- Then, it marks all jobs as skipped, which may result in discarding some of them
- The IO task receives a message from the downstairs
- It passes this message to the main task
- This message is a reply to one of the jobs that we skipped
- The main task gets mad
0 commit comments