cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhtyd <>
Subject [GitHub] cloudstack pull request #1549: CLOUDSTACK-9348: NioConnection improvements
Date Tue, 28 Jun 2016 07:35:14 GMT
Github user rhtyd commented on a diff in the pull request:
    --- Diff: utils/src/main/java/com/cloud/utils/nio/ ---
    @@ -125,7 +125,7 @@ public boolean isStartup() {
         public Boolean call() throws NioConnectionException {
             while (_isRunning) {
                 try {
    -      ;
    +      ;
    --- End diff --
    @swill this change ^^ causes the selector loop to never block indefinitely but at most
1 second. This ensures that reconnections are fast. If anyone experiences the behaviour that
tel-netting to port 8250 causes agent to reconnect then, either (1) they are not using latest
master or (2) they did not wait for up to one second (i.e. hit an edge case), in which case
we can lower this number to 100-500 millisecond at the expense of increasing cpu usage.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message