Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential connector infinite loop in read_result::stop scenarios
When connect_manager::continue_reading() encounters a read_result::stop, it clears the read mask, indicating no more reads should happen, but this flag isn't checked in connector::run_impl()'s while loop. This could lead to infinite 100% CPU utilization in a tight loop. We now simply consult the read mask in addition to the other checks.
- Loading branch information