Add a missing close(SelectionKey) call
* Without calling close(SelectionKey), the client boss loop can fall into an infinite loop.
This commit is contained in:
parent
0850449b09
commit
01c45650aa
@ -372,6 +372,7 @@ class NioClientSocketPipelineSink extends AbstractChannelSink {
|
|||||||
ConnectException cause = null;
|
ConnectException cause = null;
|
||||||
for (SelectionKey k: keys) {
|
for (SelectionKey k: keys) {
|
||||||
if (!k.isValid()) {
|
if (!k.isValid()) {
|
||||||
|
close(k);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user