mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00:00
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:
parent
e3b38bbd4f
commit
ed8d47eef2
@ -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:
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user