mirror of https://github.com/apache/kafka.git
MINOR: Fix hint in selector poll (#13324)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
8707e2cb6b
commit
1ae6405c47
|
@ -479,7 +479,7 @@ public class Selector implements Selectable, AutoCloseable {
|
|||
|
||||
// Poll from channels where the underlying socket has more data
|
||||
pollSelectionKeys(readyKeys, false, endSelect);
|
||||
// Clear all selected keys so that they are included in the ready count for the next select
|
||||
// Clear all selected keys so that they are excluded from the ready count for the next select
|
||||
readyKeys.clear();
|
||||
|
||||
pollSelectionKeys(immediatelyConnectedKeys, true, endSelect);
|
||||
|
|
Loading…
Reference in New Issue