Skip to content

Commit

Permalink
port refactor (Azure#37927)
Browse files Browse the repository at this point in the history
* eh fix to remove frame error

* eh fix to remove cbs auth error when there is a port attached

* fix frame error sb

* fix cbs auth error with port sb

* changelog + tests

* remove port split changes

* remove changelog

* nit
  • Loading branch information
l0lawrence authored Oct 25, 2024
1 parent 458af33 commit 876a6c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__( # pylint:disable=too-many-locals,too-many-statements
self._hostname = parsed_url.hostname
kwargs["http_proxy"] = http_proxy
endpoint = self._hostname
if parsed_url.port:
if parsed_url.port and not kwargs.get("use_tls", True):
self._port = parsed_url.port
elif parsed_url.scheme == "amqps":
self._port = SECURE_PORT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(# pylint:disable=too-many-locals,too-many-statements
self._hostname = parsed_url.hostname
kwargs["http_proxy"] = http_proxy
endpoint = self._hostname
if parsed_url.port:
if parsed_url.port and not kwargs.get("use_tls", True):
self._port = parsed_url.port
elif parsed_url.scheme == "amqps":
self._port = SECURE_PORT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__( # pylint:disable=too-many-locals,too-many-statements
self._hostname = parsed_url.hostname
kwargs["http_proxy"] = http_proxy
endpoint = self._hostname
if parsed_url.port:
if parsed_url.port and not kwargs.get("use_tls", True):
self._port = parsed_url.port
elif parsed_url.scheme == "amqps":
self._port = SECURE_PORT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(# pylint:disable=too-many-locals,too-many-statements
self._hostname = parsed_url.hostname
kwargs["http_proxy"] = http_proxy
endpoint = self._hostname
if parsed_url.port:
if parsed_url.port and not kwargs.get("use_tls", True):
self._port = parsed_url.port
elif parsed_url.scheme == "amqps":
self._port = SECURE_PORT
Expand Down

0 comments on commit 876a6c0

Please sign in to comment.