mirror of https://github.com/apache/nifi.git
NIFI-1612: Found a spot within the site-to-site client where the timeout was not utilized properly
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
ce068ffc6c
commit
07d4d7005b
|
@ -708,7 +708,10 @@ public class EndpointConnectionPool {
|
|||
throw new IOException(ex);
|
||||
}
|
||||
} else {
|
||||
final SocketChannel socketChannel = SocketChannel.open(new InetSocketAddress(hostname, port));
|
||||
final SocketChannel socketChannel = SocketChannel.open();
|
||||
socketChannel.socket().connect(new InetSocketAddress(hostname, port), commsTimeout);
|
||||
socketChannel.socket().setSoTimeout(commsTimeout);
|
||||
|
||||
commsSession = new SocketChannelCommunicationsSession(socketChannel, destinationUri);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue