cloudstack/utils
Rohit Yadav d5b61312bf CLOUDSTACK-9348: NioConnection improvements
- Unit test to demonstrate denial of service attack
  The NioConnection uses blocking handlers for various events such as connect,
  accept, read, write. In case a client connects NioServer (used by
  agent mgr to service agents on port 8250) but fails to participate in SSL
  handshake or just sits idle, this would block the main IO/selector loop in
  NioConnection. Such a client could be either malicious or aggresive.

  This unit test demonstrates such a malicious client that can perform a
  denial-of-service attack on NioServer that blocks it to serve any other client.

- Use non-blocking SSL handshake
  - Uses non-blocking socket config in NioClient and NioServer/NioConnection
  - Scalable connectivity from agents and peer clustered-management server
  - Removes blocking ssl handshake code with a non-blocking code
  - Protects from denial-of-service issues that can degrade mgmt server responsiveness
    due to an aggressive/malicious client
  - Uses separate executor services for handling ssl handshakes

Cherry-picked and backported from 9c7518698d

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2016-05-23 11:49:29 +05:30
..
bindir fixing utils license header 2012-06-06 23:06:02 -04:00
certs Update fail-safe keystore with RSA private key 2011-07-25 18:55:16 -07:00
conf Fixup the license headers in the utils project. All files now use the same license header and this is enforced by the maven-license-check plugin. 2014-02-18 12:08:36 +01:00
src CLOUDSTACK-9348: NioConnection improvements 2016-05-23 11:49:29 +05:30
test CLOUDSTACK-9052 Shuffling the password to avoid having a subset of characters in fixed positions. 2015-11-23 11:50:26 +05:30
pom.xml cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30