cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sw...@apache.org
Subject [2/2] git commit: updated refs/heads/master to 9f970f2
Date Fri, 06 May 2016 18:27:31 GMT
Merge pull request #1534 from shapeblue/niotest-fix

CLOUDSTACK-9348: Optimize NioTest and NioConnection main loop- Reduces SSL handshake timeout
to 15s, previously this was only 10s in
  commit debfcdef788ce0d51be06db0ef10f6815f9b563b
- Adds an aggresive explicit wakeup to save the Nio main IO loop/handler from
  getting blocked
- Fix NioTest to fail/succeed in about 60s, previously this was 300s
- Due to aggresive wakeup usage, NioTest should complete in less than 5s on most
  systems. On virtualized environment this may slightly increase due to thread,
  CPU burst/scheduling delays.

/cc @swill  please review and merge.
Sorry about the previous values, they were not optimized for virtualized env. The aggressive
selector.wakeup will ensure main IO loop does not get blocked even by malicious users, even
for any timeout (ssl handshake etc).

* pr/1534:
  CLOUDSTACK-9348: Optimize NioTest and NioConnection main loop

Signed-off-by: Will Stevens <williamstevens@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9f970f28
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9f970f28
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9f970f28

Branch: refs/heads/master
Commit: 9f970f28b18534dffe33196ead60ea861f501fa9
Parents: 6d0c92b ea22869
Author: Will Stevens <williamstevens@gmail.com>
Authored: Fri May 6 14:26:26 2016 -0400
Committer: Will Stevens <williamstevens@gmail.com>
Committed: Fri May 6 14:26:27 2016 -0400

----------------------------------------------------------------------
 .../src/main/java/com/cloud/utils/nio/Link.java |  4 ++--
 .../java/com/cloud/utils/nio/NioConnection.java |  2 ++
 .../java/com/cloud/utils/testcase/NioTest.java  | 23 ++++++++++++--------
 3 files changed, 18 insertions(+), 11 deletions(-)
----------------------------------------------------------------------



Mime
View raw message