rhtyd commented on a change in pull request #2239: CLOUDSTACK-9993: Securing
Agents Communications
URL: https://github.com/apache/cloudstack/pull/2239#discussion_r134771492
##########
File path:
engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
##########
@@ -495,28 +495,29 @@ public SocketChannel connectToPeer(final String
peerName, final SocketChannel pr
}
final String ip = ms.getServiceIP();
InetAddress addr;
+ int port = Port.value();
try {
addr = InetAddress.getByName(ip);
} catch (final UnknownHostException e) {
throw new CloudRuntimeException("Unable to resolve " + ip);
}
SocketChannel ch1 = null;
try {
- ch1 = SocketChannel.open(new InetSocketAddress(addr,
Port.value()));
+ ch1 = SocketChannel.open(new InetSocketAddress(addr,
port));
Review comment:
we can however, I avoided much changes, as we were doing something with
handshake etc.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services