-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for IPV6 addresses (#3704)
# Description This PR adds a new option: `HighThoughputExecutor(loopback_address: str = "127.0.0.1")` which can be used to specify the internal address used by HTEX for communication between the executor and the interchange. In addition, all ZMQ sockets are now are set to having IPv6 enabled. The test config `htex_local` has been updated to use `loopback_address="::1"` for testing. # Changed Behaviour * IPv6 support is enabled on all HTEX ZMQ components. * HTEX now supports a `loopback_address` which allows configuring the address used for internal communication Fixes # (issue) ## Type of change Choose which options apply, and delete the ones which do not apply. - New feature - Update to human readable text: Documentation/error messages/comments
- Loading branch information
Showing
11 changed files
with
83 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import pytest | ||
|
||
from parsl.addresses import tcp_url | ||
|
||
|
||
@pytest.mark.local | ||
@pytest.mark.parametrize("address, port,expected", [ | ||
("127.0.0.1", 55001, "tcp://127.0.0.1:55001"), | ||
("127.0.0.1", "55001", "tcp://127.0.0.1:55001"), | ||
("127.0.0.1", None, "tcp://127.0.0.1"), | ||
("::1", "55001", "tcp://[::1]:55001"), | ||
("::ffff:127.0.0.1", 55001, "tcp://[::ffff:127.0.0.1]:55001"), | ||
("::ffff:127.0.0.1", None, "tcp://::ffff:127.0.0.1"), | ||
("::ffff:127.0.0.1", None, "tcp://::ffff:127.0.0.1"), | ||
("*", None, "tcp://*"), | ||
]) | ||
def test_tcp_url(address, port, expected): | ||
"""Confirm valid address generation""" | ||
result = tcp_url(address, port) | ||
assert result == expected |