Skip to content

Commit b34202a

Browse files
MSMarcus Sorensen
authored andcommitted
CLOUDSTACK-8387 - Close mgmt server peer socket on failure, without relying on autoclose
1 parent fde2615 commit b34202a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public SocketChannel connectToPeer(String peerName, SocketChannel prevCh) {
498498
} catch (UnknownHostException e) {
499499
throw new CloudRuntimeException("Unable to resolve " + ip);
500500
}
501-
SocketChannel ch1;
501+
SocketChannel ch1 = null;
502502
try {
503503
ch1 = SocketChannel.open(new InetSocketAddress(addr, Port.value()));
504504
ch1.configureBlocking(true); // make sure we are working at blocking mode

0 commit comments

Comments
 (0)