aury-boot 0.0.44__py3-none-any.whl → 0.0.45__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aury/boot/_version.py +2 -2
- aury/boot/infrastructure/cache/redis.py +2 -0
- aury/boot/infrastructure/channel/manager.py +8 -0
- aury/boot/infrastructure/clients/redis/manager.py +2 -0
- {aury_boot-0.0.44.dist-info → aury_boot-0.0.45.dist-info}/METADATA +1 -1
- {aury_boot-0.0.44.dist-info → aury_boot-0.0.45.dist-info}/RECORD +8 -8
- {aury_boot-0.0.44.dist-info → aury_boot-0.0.45.dist-info}/WHEEL +0 -0
- {aury_boot-0.0.44.dist-info → aury_boot-0.0.45.dist-info}/entry_points.txt +0 -0
aury/boot/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 0,
|
|
31
|
+
__version__ = version = '0.0.45'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 0, 45)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
from __future__ import annotations
|
|
7
7
|
|
|
8
8
|
from collections.abc import AsyncIterator
|
|
9
|
+
from urllib.parse import urlparse
|
|
9
10
|
|
|
10
11
|
from aury.boot.common.logging import logger
|
|
11
12
|
|
|
@@ -113,6 +114,13 @@ class ChannelManager:
|
|
|
113
114
|
broadcast_url = url
|
|
114
115
|
if url.startswith("redis-cluster://"):
|
|
115
116
|
broadcast_url = url.replace("redis-cluster://", "redis://")
|
|
117
|
+
# 处理 password@host 格式(转换为标准 :password@host 格式)
|
|
118
|
+
parsed = urlparse(broadcast_url)
|
|
119
|
+
if parsed.username and not parsed.password:
|
|
120
|
+
broadcast_url = broadcast_url.replace(
|
|
121
|
+
f"redis://{parsed.username}@",
|
|
122
|
+
f"redis://:{parsed.username}@"
|
|
123
|
+
)
|
|
116
124
|
logger.info(f"通道管理器 [{self.name}] Redis Cluster 使用普通 Pub/Sub 模式")
|
|
117
125
|
|
|
118
126
|
self._backend_type = backend
|
|
@@ -225,6 +225,8 @@ class RedisClient:
|
|
|
225
225
|
self._redis = RedisCluster.from_url(
|
|
226
226
|
redis_url,
|
|
227
227
|
decode_responses=self._config.decode_responses,
|
|
228
|
+
socket_connect_timeout=self._config.socket_connect_timeout or 30,
|
|
229
|
+
socket_timeout=self._config.socket_timeout or 30,
|
|
228
230
|
)
|
|
229
231
|
self._is_cluster = True
|
|
230
232
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
aury/boot/__init__.py,sha256=pCno-EInnpIBa1OtxNYF-JWf9j95Cd2h6vmu0xqa_-4,1791
|
|
2
|
-
aury/boot/_version.py,sha256=
|
|
2
|
+
aury/boot/_version.py,sha256=ZyfWnYPDH177nyt27Ffy71kE1qNlQLtAEIFxyT_Cx5c,706
|
|
3
3
|
aury/boot/application/__init__.py,sha256=I2KqNVdYg2q5nlOXr0TtFGyHmhj4oWdaR6ZB73Mwg7Y,3041
|
|
4
4
|
aury/boot/application/adapter/__init__.py,sha256=e1bcSb1bxUMfofTwiCuHBZJk5-STkMCWPF2EJXHQ7UU,3976
|
|
5
5
|
aury/boot/application/adapter/base.py,sha256=Ar_66fiHPDEmV-1DKnqXKwc53p3pozG31bgTJTEUriY,15763
|
|
@@ -143,10 +143,10 @@ aury/boot/infrastructure/cache/exceptions.py,sha256=KZsFIHXW3_kOh_KB93EVZJKbiDvD
|
|
|
143
143
|
aury/boot/infrastructure/cache/factory.py,sha256=aF74JoiiSKFgctqqh2Z8OtGRS2Am_ou-I40GyygLzC0,2489
|
|
144
144
|
aury/boot/infrastructure/cache/manager.py,sha256=2jlshbO4NqpPxH-8DBiMFNAvWuZUI3atUCsw9GGlzc8,16807
|
|
145
145
|
aury/boot/infrastructure/cache/memory.py,sha256=qGhLKKjGsEUHjVRFMV6A33MB_1iPaKCEEkT6VFrLkQY,9832
|
|
146
|
-
aury/boot/infrastructure/cache/redis.py,sha256=
|
|
146
|
+
aury/boot/infrastructure/cache/redis.py,sha256=mV2al54ZkiapIF3oBaFLTQAmZbpkxV5CCpS6YJrg75Y,10283
|
|
147
147
|
aury/boot/infrastructure/channel/__init__.py,sha256=gl0PNOEfomiuVh5KLwJKoc3r_vnQsoXKHuwJBffgfMY,734
|
|
148
148
|
aury/boot/infrastructure/channel/base.py,sha256=Us1sqa6__XUXPNaI_Fd8beznEyGu8ezkLZBjqIix5HQ,2955
|
|
149
|
-
aury/boot/infrastructure/channel/manager.py,sha256=
|
|
149
|
+
aury/boot/infrastructure/channel/manager.py,sha256=S70W9q86RCWamhwRQxqyGMC-Nvlv7aKTXw5R_ev4qZg,8441
|
|
150
150
|
aury/boot/infrastructure/channel/backends/__init__.py,sha256=NcXG8_KAqy1SiGUs2z_KvkS90jMfLJ6bzyYK4Jw4qCg,107
|
|
151
151
|
aury/boot/infrastructure/channel/backends/broadcaster.py,sha256=y8eKx6X6Iy9a_5vnLMm5gjqkq05SmJEWESw1-x0lIFg,4771
|
|
152
152
|
aury/boot/infrastructure/clients/__init__.py,sha256=1ANMejb3RrBgaR-jq-dsxJ0kQDRHz5jV-QvdUNcf_ok,435
|
|
@@ -155,7 +155,7 @@ aury/boot/infrastructure/clients/rabbitmq/config.py,sha256=YmvNiISpqNt-LE2Crpzmx
|
|
|
155
155
|
aury/boot/infrastructure/clients/rabbitmq/manager.py,sha256=a3Op0yN2DICnoqxOVb0DVT9RnoF8laN2EutOsOSWzWA,9659
|
|
156
156
|
aury/boot/infrastructure/clients/redis/__init__.py,sha256=HGZVfcWmOPeiAk-rJ8Yun7N5CQiPlGFofdByvl8Uqso,613
|
|
157
157
|
aury/boot/infrastructure/clients/redis/config.py,sha256=KfC2R7bcQ91zjTp8Q_S7j3ZemDLdejUYc3CrWsJlpNM,1421
|
|
158
|
-
aury/boot/infrastructure/clients/redis/manager.py,sha256=
|
|
158
|
+
aury/boot/infrastructure/clients/redis/manager.py,sha256=4c0Xknkcrg3Ly4bN3vIP8N8IVS6vFTwUwTSH58e2bUg,10824
|
|
159
159
|
aury/boot/infrastructure/database/__init__.py,sha256=MsHNyrJ2CZJT-lbVZzOAJ0nFfFEmHrJqC0zw-cFS768,888
|
|
160
160
|
aury/boot/infrastructure/database/config.py,sha256=5LYy4DuLL0XNjVnX2HUcrMh3c71eeZa-vWGM8QCkL0U,1408
|
|
161
161
|
aury/boot/infrastructure/database/exceptions.py,sha256=hUjsU23c0eMwogSDrKq_bQ6zvnY7PQSGaitbCEhhDZQ,766
|
|
@@ -216,7 +216,7 @@ aury/boot/testing/client.py,sha256=KOg1EemuIVsBG68G5y0DjSxZGcIQVdWQ4ASaHE3o1R0,4
|
|
|
216
216
|
aury/boot/testing/factory.py,sha256=8GvwX9qIDu0L65gzJMlrWB0xbmJ-7zPHuwk3eECULcg,5185
|
|
217
217
|
aury/boot/toolkit/__init__.py,sha256=AcyVb9fDf3CaEmJPNkWC4iGv32qCPyk4BuFKSuNiJRQ,334
|
|
218
218
|
aury/boot/toolkit/http/__init__.py,sha256=5bv4Ntz1sbNFhP9zPLBDhB536ZX1CKIAOp-kQSKMRQ0,14161
|
|
219
|
-
aury_boot-0.0.
|
|
220
|
-
aury_boot-0.0.
|
|
221
|
-
aury_boot-0.0.
|
|
222
|
-
aury_boot-0.0.
|
|
219
|
+
aury_boot-0.0.45.dist-info/METADATA,sha256=6s2k9vknMZuXxUUOw3m2jXPk_v5xwQ8IdymHWWIxkss,8989
|
|
220
|
+
aury_boot-0.0.45.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
221
|
+
aury_boot-0.0.45.dist-info/entry_points.txt,sha256=f9KXEkDIGc0BGkgBvsNx_HMz9VhDjNxu26q00jUpDwQ,49
|
|
222
|
+
aury_boot-0.0.45.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|