cloudstack/engine/orchestration
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
..
resources/META-INF/cloudstack/core CLOUDSTACK-669: Finalize VM work dispatching mechanism to avoid big switch statement 2014-01-09 14:29:12 -08:00
src CLOUDSTACK-9348: NioConnection improvements 2016-05-23 11:49:29 +05:30
test completed the new vmsync TODOs in the code. 2014-07-28 12:51:37 -07:00
pom.xml cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30