Skip to content

Commit 033f87d

Browse files
committed
CLOUDSTACK-9348: Make NioConnection selector blocking by timeout
Uses timeout based selector blocking. This makes connection handling aggressive safely. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent c8e0fc7 commit 033f87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/com/cloud/utils/nio/NioConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void run() {
130130

131131
while (_isRunning) {
132132
try {
133-
_selector.select();
133+
_selector.select(1000);
134134

135135
// Someone is ready for I/O, get the ready keys
136136
Set<SelectionKey> readyKeys = _selector.selectedKeys();

0 commit comments

Comments
 (0)