Skip to content

Commit 372f18a

Browse files
authored
update to uamqp 1.5.0 (#22348)
1 parent 1afcf83 commit 372f18a

File tree

9 files changed

+15
-5
lines changed

9 files changed

+15
-5
lines changed

sdk/eventhub/azure-eventhub/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ This version and all future versions will require Python 3.7+. Python 2.7 and 3.
1717

1818
### Other Changes
1919

20+
- Improved token refresh timing to prevent potentially blocking main flow when the token is about to get expired soon.
21+
- Updated uAMQP dependency to 1.5.0.
22+
2023
## 5.6.1 (2021-10-06)
2124

2225
### Bugs Fixed

sdk/eventhub/azure-eventhub/azure/eventhub/_client_base.py

+1
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ def _create_auth(self):
341341
custom_endpoint_hostname=self._config.custom_endpoint_hostname,
342342
port=self._config.connection_port,
343343
verify=self._config.connection_verify,
344+
refresh_window=300,
344345
)
345346

346347
def _close_connection(self):

sdk/eventhub/azure-eventhub/azure/eventhub/aio/_client_base_async.py

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ async def _create_auth_async(self) -> authentication.JWTTokenAsync:
205205
custom_endpoint_hostname=self._config.custom_endpoint_hostname,
206206
port=self._config.connection_port,
207207
verify=self._config.connection_verify,
208+
refresh_window=300,
208209
)
209210
await auth.update_token()
210211
return auth

sdk/eventhub/azure-eventhub/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
packages=find_packages(exclude=exclude_packages),
7070
install_requires=[
7171
"azure-core<2.0.0,>=1.14.0",
72-
"uamqp>=1.4.3,<2.0.0",
72+
"uamqp>=1.5.0,<2.0.0",
7373
]
7474
)

sdk/servicebus/azure-servicebus/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ This version and all future versions will require Python 3.7+. Python 2.7 and 3.
1717

1818
### Other Changes
1919

20+
- Improved token refresh timing to prevent potentially blocking main flow when the token is about to get expired soon.
21+
- Updated uAMQP dependency to 1.5.0.
22+
2023
## 7.4.0 (2021-11-09)
2124

2225
### Features Added

sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def create_authentication(client):
184184
timeout=client._config.auth_timeout,
185185
http_proxy=client._config.http_proxy,
186186
transport_type=client._config.transport_type,
187+
refresh_window=300,
187188
)
188189

189190

sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ async def create_authentication(client):
6666
timeout=client._config.auth_timeout,
6767
http_proxy=client._config.http_proxy,
6868
transport_type=client._config.transport_type,
69+
refresh_window=300,
6970
)
7071

7172

sdk/servicebus/azure-servicebus/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
'azure',
6464
]),
6565
install_requires=[
66-
"uamqp>=1.4.3,<2.0.0",
66+
"uamqp>=1.5.0,<2.0.0",
6767
'azure-common~=1.1',
6868
'msrest>=0.6.17,<2.0.0',
6969
'azure-core<2.0.0,>=1.14.0',

shared_requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ msrest>=0.6.21
118118
msrestazure<2.0.0,>=0.4.32
119119
azure-mgmt-core<2.0.0,>=1.2.0
120120
requests>=2.18.4
121-
uamqp~=1.2.0
121+
uamqp~=1.5.0
122122
enum34>=1.0.4
123123
certifi>=2017.4.17
124124
aiohttp>=3.0
@@ -174,9 +174,9 @@ opentelemetry-sdk<2.0.0,>=1.5.0,!=1.10a0
174174
#override azure-eventhub-checkpointstoreblob-aio azure-core<2.0.0,>=1.20.1
175175
#override azure-eventhub-checkpointstoreblob-aio aiohttp<4.0,>=3.0
176176
#override azure-eventhub-checkpointstoretable azure-core<2.0.0,>=1.14.0
177-
#override azure-eventhub uamqp>=1.4.3,<2.0.0
177+
#override azure-eventhub uamqp>=1.5.0,<2.0.0
178178
#override azure-appconfiguration msrest>=0.6.10
179-
#override azure-servicebus uamqp>=1.4.3,<2.0.0
179+
#override azure-servicebus uamqp>=1.5.0,<2.0.0
180180
#override azure-servicebus msrest>=0.6.17,<2.0.0
181181
#override azure-servicebus azure-core<2.0.0,>=1.14.0
182182
#override azure-synapse-accesscontrol azure-core>=1.20.0,<2.0.0

0 commit comments

Comments
 (0)