mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-21 13:49:50 +08:00
[ISSUE #6246] Optimize AcceptSocketService#run
This commit is contained in:
@@ -342,7 +342,7 @@ public class DefaultHAService implements HAService {
|
||||
|
||||
if (selected != null) {
|
||||
for (SelectionKey k : selected) {
|
||||
if ((k.readyOps() & SelectionKey.OP_ACCEPT) != 0) {
|
||||
if (k.isAcceptable()) {
|
||||
SocketChannel sc = ((ServerSocketChannel) k.channel()).accept();
|
||||
|
||||
if (sc != null) {
|
||||
|
||||
Reference in New Issue
Block a user