Revert "CLOUDSTACK-9348: Make NioConnectio loop less aggressive"

This reverts commit 540d9572fd.

This was reverted because it seemed to be related to an issue
when doing a DeployDC, causing an `addHost` error.
This commit is contained in:
Will Stevens 2016-05-16 17:27:07 -04:00
parent e3b38bbd4f
commit ed8d47eef2
2 changed files with 3 additions and 4 deletions

View File

@ -615,10 +615,7 @@ public class Link {
case NEED_TASK:
Runnable task;
while ((task = sslEngine.getDelegatedTask()) != null) {
if (s_logger.isTraceEnabled()) {
s_logger.trace("SSL: Running delegated task!");
}
task.run();
new Thread(task).run();
}
break;
case FINISHED:

View File

@ -171,6 +171,8 @@ public abstract class NioConnection implements Callable<Boolean> {
} catch (final IOException e) {
s_logger.error("Agent will die due to this IOException!", e);
throw new NioConnectionException(e.getMessage(), e);
} finally {
_selector.wakeup();
}
}
_isStartup = false;