[
https://issues.apache.org/jira/browse/NIFI-3541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890352#comment-15890352
]
Andy LoPresto commented on NIFI-3541:
-------------------------------------
It looks like this {{Socket}} constructor [1] will allow binding to a local
{{InetAddress}} for the socket implementation [2], and Apache {{HttpClient}}
allows a configuration value to be set [3] for the HTTP implementation [4][5].
[1]
https://docs.oracle.com/javase/7/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20java.net.InetAddress,%20int)
[2]
https://github.com/apache/nifi/blob/master/nifi-commons/nifi-socket-utils/src/main/java/org/apache/nifi/io/socket/SocketUtils.java#L59
[3] http://stackoverflow.com/a/8213758/70465
[4]
https://github.com/apache/nifi/blob/master/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/client/http/HttpClient.java
[5]
https://github.com/apache/nifi/blob/master/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/util/SiteToSiteRestApiClient.java
> Site to Site Client should allow indication of local binding address
> --------------------------------------------------------------------
>
> Key: NIFI-3541
> URL: https://issues.apache.org/jira/browse/NIFI-3541
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Joseph Witt
>
> For systems with multiple nics to choose from we need a way to tell the
> operating system from our site to site client which local address (nic) we
> want to bind to. The java socket class makes this possible but we do not
> make this available via site to site yet.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)