1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
Ë
 
çúh–tãó —ddlZddlZddlZddlZddlZddlZddlmZmZddl    m
Z
m Z m Z m Z ddlmZGd„dej «ZGd„dej «Ze
rdd    lmZmZGd
„d e«ZGd „d e«ZGd„de«ZGd„de«ZGd„de«ZGd„de«Zdedefd„ZGd„d«ZGd„d«Z Gd„d«Z!y)éN)ÚABCÚabstractmethod)Ú TYPE_CHECKINGÚLiteralÚOptionalÚUnion)ÚNumbercó—eZdZdZdZdZy)ÚMaintenanceStateÚnoneÚmovingÚ maintenanceN)Ú__name__Ú
__module__Ú __qualname__ÚNONEÚMOVINGÚ MAINTENANCE©óõlH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\redis/maint_notifications.pyr r s„Ø €DØ €F؁Krr có*—eZdZdZdZdZdZdZdZd„Z    y)    Ú EndpointTypez@Valid endpoint types used in CLIENT MAINT_NOTIFICATIONS command.z internal-ipz internal-fqdnz external-ipz external-fqdnr có—|jS)z$Return the string value of the enum.)Úvalue©Úselfs rÚ__str__zEndpointType.__str__s €àz‰zÐrN)
rrrÚ__doc__Ú INTERNAL_IPÚ INTERNAL_FQDNÚ EXTERNAL_IPÚ EXTERNAL_FQDNrrrrrrrs#„ÙJà€KØ#€MØ€KØ#€MØ €Dórr)Ú$MaintNotificationsAbstractConnectionÚ(MaintNotificationsAbstractConnectionPoolcón—eZdZdZdedefd„Zdefd„Zede    fd„«Z
edefd„«Z edefd    „«Z y
) ÚMaintenanceNotificationaÔ
    Base class for maintenance notifications sent through push messages by Redis server.
 
    This class provides common functionality for all maintenance notifications including
    unique identification and TTL (Time-To-Live) functionality.
 
    Attributes:
        id (int): Unique identifier for this notification
        ttl (int): Time-to-live in seconds for this notification
        creation_time (float): Timestamp when the notification was created/read
    ÚidÚttlcóŽ—||_||_tj«|_|j|jz|_y)zò
        Initialize a new MaintenanceNotification with unique ID and TTL functionality.
 
        Args:
            id (int): Unique identifier for this notification
            ttl (int): Time-to-live in seconds for this notification
        N)r(r)ÚtimeÚ    monotonicÚ creation_timeÚ    expire_at)rr(r)s   rÚ__init__z MaintenanceNotification.__init__5s7€ðˆŒØˆŒÜ!Ÿ^™^Ó-ˆÔØ×+Ñ+¨d¯h©hÑ6ˆrÚreturncó^—tj«|j|jzkDS)z¾
        Check if this notification has expired based on its TTL
        and creation time.
 
        Returns:
            bool: True if the notification has expired, False otherwise
        )r+r,r-r)rs rÚ
is_expiredz"MaintenanceNotification.is_expiredBs%€ô~‰~Ó 4×#5Ñ#5¸¿¹Ñ#@ÑAÐArcó—y)zã
        Return a string representation of the maintenance notification.
 
        This method must be implemented by all concrete subclasses.
 
        Returns:
            str: String representation of the notification
        Nrrs rÚ__repr__z MaintenanceNotification.__repr__Ls€ð     rcó—y)a–
        Compare two maintenance notifications for equality.
 
        This method must be implemented by all concrete subclasses.
        Notifications are typically considered equal if they have the same id
        and are of the same type.
 
        Args:
            other: The other object to compare with
 
        Returns:
            bool: True if the notifications are equal, False otherwise
        Nr©rÚothers  rÚ__eq__zMaintenanceNotification.__eq__Xs€ð     rcó—y)a
        Return a hash value for the maintenance notification.
 
        This method must be implemented by all concrete subclasses to allow
        instances to be used in sets and as dictionary keys.
 
        Returns:
            int: Hash value for the notification
        Nrrs rÚ__hash__z MaintenanceNotification.__hash__is€ð     rN) rrrrÚintr/Úboolr2rÚstrr4r8r:rrrr'r'(sy„ñ
ð 7˜3ð 7 Só 7ðB˜DóBðð     ˜#ò     óð     ðð ˜tò óð ð ð
 ˜#ò
 óñ
 rr'cód‡—eZdZdZdedeedeedefˆfd„ Zdefd„Zde    fd    „Z
defd
„Z ˆxZ S) ÚNodeMovingNotificationz‰
    This notification is received when a node is replaced with a new node
    during cluster rebalancing or maintenance operations.
    r(Ú new_node_hostÚ new_node_portr)cóB•—t‰|||«||_||_y)ai
        Initialize a new NodeMovingNotification.
 
        Args:
            id (int): Unique identifier for this notification
            new_node_host (str): Hostname or IP address of the new replacement node
            new_node_port (int): Port number of the new replacement node
            ttl (int): Time-to-live in seconds for this notification
        N)Úsuperr/r@rA)rr(r@rAr)Ú    __class__s     €rr/zNodeMovingNotification.__init__}s$ø€ô     ‰Ñ˜˜SÔ!Ø*ˆÔØ*ˆÕrr0có@—|j}td|tj«z
«}|jj
›d|j ›d|j›d|j›d|j›d|j›d|›d|d    ›d
|j«›d S) Nrú(id=z, new_node_host='z', new_node_port=ú, ttl=ú, creation_time=ú , expires_at=ú , remaining=ú.1fú s, expired=ú)) r.Úmaxr+r,rDrr(r@rAr)r-r2©rÚ expiry_timeÚ    remainings   rr4zNodeMovingNotification.__repr__‘s¹€Ø—n‘nˆ ܘ˜;¬¯©Ó)9Ñ9Ó:ˆ    ð~‰~×&Ñ&Ð'ð(Ø—'‘'ðØ"×0Ñ0Ð1ð2Ø!×/Ñ/Ð0ð1Ø—8‘8*ðØ!×/Ñ/Ð0ð1Ø%˜ð'Ø" 3˜ð(Ø—‘Ó(Ð)Øð     ð     
rcó—t|t«sy|j|jk(xr4|j|jk(xr|j|jk(S)z“
        Two NodeMovingNotification notifications are considered equal if they have the same
        id, new_node_host, and new_node_port.
        F)Ú
isinstancer?r(r@rAr6s  rr8zNodeMovingNotification.__eq__¢sY€ô
˜%Ô!7Ô8Øà G‰Gu—x‘xÑ ò :Ø×"Ñ" e×&9Ñ&9Ñ9ò :à×"Ñ" e×&9Ñ&9Ñ9ð    
rcóþ—    |jrt|j«nd}t|jj
t|j «t|j«|f«S#t$rd}YŒVwxYw)a
        Return a hash value for the notification to allow
        instances to be used in sets and as dictionary keys.
 
        Returns:
            int: Hash value based on notification type class name, id,
            new_node_host and new_node_port
        Nr)    rAr;Ú
ValueErrorÚhashrDrr(r=r@)rÚ    node_ports  rr:zNodeMovingNotification.__hash__¯st€ð    Ø37×3EÒ3Eœ˜D×.Ñ.Ô/È4ˆIôà—‘×'Ñ'ܐD—G‘G“ ܐD×&Ñ&Ó'Øð     ó
ð    
øôò    ØŠIð    ús‚#A.Á. A<Á;A<) rrrrr;rr=r/r4r<r8r:Ú __classcell__©rDs@rr?r?ws_ø„ñð
+à ð+ð  ‘}ð+ð  ‘}ð    +ð
õ +ð(
˜#ó
ð" 
˜tó 
ð
˜#÷
rr?cóP‡—eZdZdZdedefˆfd„ Zdefd„Zdefd„Z    defd„Z
ˆxZ S)    ÚNodeMigratingNotificationat
    Notification for when a Redis cluster node is in the process of migrating slots.
 
    This notification is received when a node starts migrating its slots to another node
    during cluster rebalancing or maintenance operations.
 
    Args:
        id (int): Unique identifier for this notification
        ttl (int): Time-to-live in seconds for this notification
    r(r)có&•—t‰|||«y©N©rCr/©rr(r)rDs   €rr/z"NodeMigratingNotification.__init__Óóø€Ü ‰Ñ˜˜SÕ!rr0có&—|j|jz}td|tj«z
«}|j
j ›d|j›d|j›d|j›d|›d|d›d|j«›d    S©
NrrFrGrHrIrJrKrLrM©    r-r)rNr+r,rDrr(r2rOs   rr4z"NodeMigratingNotification.__repr__Ö󠀨×(Ñ(¨4¯8©8Ñ3ˆ ܘ˜;¬¯©Ó)9Ñ9Ó:ˆ    à~‰~×&Ñ&Ð'ð(Ø—'‘'ðØ—8‘8*ðØ!×/Ñ/Ð0ð1Ø%˜ð'Ø" 3˜ð(Ø—‘Ó(Ð)Øð ð        
rcó†—t|t«sy|j|jk(xrt|«t|«uS)z
        Two NodeMigratingNotification notifications are considered equal if they have the same
        id and are of the same type.
        F)rSr[r(Útyper6s  rr8z NodeMigratingNotification.__eq__äs7€ô
˜%Ô!:Ô;ØØw‰w˜%Ÿ(™(Ñ"Ò@¤t¨D£z´T¸%³[Ð'@Ð@rcój—t|jjt|j«f«S©zÐ
        Return a hash value for the notification to allow
        instances to be used in sets and as dictionary keys.
 
        Returns:
            int: Hash value based on notification type and id
        ©rVrDrr;r(rs rr:z"NodeMigratingNotification.__hash__íó&€ôT—^‘^×,Ñ,¬c°$·'±'«lÐ;Ó<Ð<r© rrrrr;r/r=r4r<r8r:rXrYs@rr[r[ÇóAø„ñ    ð"˜3ð" Sõ"ð 
˜#ó 
ðA˜tóAð=˜#÷=rr[cóP‡—eZdZdZdZdefˆfd„ Zdefd„Zde    fd„Z
defd„Z ˆxZ S)    ÚNodeMigratedNotificationa5
    Notification for when a Redis cluster node has completed migrating slots.
 
    This notification is received when a node has finished migrating all its slots
    to other nodes during cluster rebalancing or maintenance operations.
 
    Args:
        id (int): Unique identifier for this notification
    ér(cóB•—t‰||tj«yr])rCr/rnÚ DEFAULT_TTL©rr(rDs  €rr/z!NodeMigratedNotification.__init__sø€Ü ‰Ñ˜Ô5×AÑAÕBrr0có&—|j|jz}td|tj«z
«}|j
j ›d|j›d|j›d|j›d|›d|d›d|j«›d    SrbrcrOs   rr4z!NodeMigratedNotification.__repr__rdrcó†—t|t«sy|j|jk(xrt|«t|«uS)zŒ
        Two NodeMigratedNotification notifications are considered equal if they have the same
        id and are of the same type.
        F)rSrnr(rfr6s  rr8zNodeMigratedNotification.__eq__s7€ô
˜%Ô!9Ô:ØØw‰w˜%Ÿ(™(Ñ"Ò@¤t¨D£z´T¸%³[Ð'@Ð@rcój—t|jjt|j«f«Srhrirs rr:z!NodeMigratedNotification.__hash__rjr© rrrrrqr;r/r=r4r<r8r:rXrYs@rrnrnøsCø„ñð€KðC˜3õCð 
˜#ó 
ðA˜tóAð=˜#÷=rrncóP‡—eZdZdZdedefˆfd„ Zdefd„Zdefd„Z    defd„Z
ˆxZ S)    ÚNodeFailingOverNotificationap
    Notification for when a Redis cluster node is in the process of failing over.
 
    This notification is received when a node starts a failover process during
    cluster maintenance operations or when handling node failures.
 
    Args:
        id (int): Unique identifier for this notification
        ttl (int): Time-to-live in seconds for this notification
    r(r)có&•—t‰|||«yr]r^r_s   €rr/z$NodeFailingOverNotification.__init__6r`rr0có&—|j|jz}td|tj«z
«}|j
j ›d|j›d|j›d|j›d|›d|d›d|j«›d    SrbrcrOs   rr4z$NodeFailingOverNotification.__repr__9rdrcó†—t|t«sy|j|jk(xrt|«t|«uS)z
        Two NodeFailingOverNotification notifications are considered equal if they have the same
        id and are of the same type.
        F)rSrxr(rfr6s  rr8z"NodeFailingOverNotification.__eq__Gs7€ô
˜%Ô!<Ô=ØØw‰w˜%Ÿ(™(Ñ"Ò@¤t¨D£z´T¸%³[Ð'@Ð@rcój—t|jjt|j«f«Srhrirs rr:z$NodeFailingOverNotification.__hash__PrjrrkrYs@rrxrx*rlrrxcóP‡—eZdZdZdZdefˆfd„ Zdefd„Zde    fd„Z
defd„Z ˆxZ S)    ÚNodeFailedOverNotificationa/
    Notification for when a Redis cluster node has completed a failover.
 
    This notification is received when a node has finished the failover process
    during cluster maintenance operations or after handling node failures.
 
    Args:
        id (int): Unique identifier for this notification
    ror(cóB•—t‰||tj«yr])rCr/r~rqrrs  €rr/z#NodeFailedOverNotification.__init__hsø€Ü ‰Ñ˜Ô7×CÑCÕDrr0có&—|j|jz}td|tj«z
«}|j
j ›d|j›d|j›d|j›d|›d|d›d|j«›d    SrbrcrOs   rr4z#NodeFailedOverNotification.__repr__krdrcó†—t|t«sy|j|jk(xrt|«t|«uS)zŽ
        Two NodeFailedOverNotification notifications are considered equal if they have the same
        id and are of the same type.
        F)rSr~r(rfr6s  rr8z!NodeFailedOverNotification.__eq__ys7€ô
˜%Ô!;Ô<ØØw‰w˜%Ÿ(™(Ñ"Ò@¤t¨D£z´T¸%³[Ð'@Ð@rcój—t|jjt|j«f«Srhrirs rr:z#NodeFailedOverNotification.__hash__‚rjrrvrYs@rr~r~[sCø„ñð€KðE˜3õEð 
˜#ó 
ðA˜tóAð=˜#÷=rr~Úhostr0có’—|j«jd«}d|vrygd¢}|D]}tj||«sŒyy)a§
    Determine if an FQDN is likely to be internal/private.
 
    This uses heuristics based on RFC 952 and RFC 1123 standards:
    - .local domains (RFC 6762 - Multicast DNS)
    - .internal domains (common internal convention)
    - Single-label hostnames (no dots)
    - Common internal TLDs
 
    Args:
        host (str): The FQDN to check
 
    Returns:
        bool: True if the FQDN appears to be internal/private
    ú.T)z\.local$z \.internal$z\.corp$z\.lan$z \.intranet$z
\.private$F)ÚlowerÚrstripÚreÚsearch)rƒÚ
host_lowerÚinternal_patternsÚpatterns    rÚ_is_private_fqdnrsV€ð —‘“×$Ñ$ SÓ)€Jð *ÑØòÐð%òˆÜ 9‰9W˜jÕ )Ùðð
rc
óz—eZdZdZ                ddeeedfdedeedee    fd„Z
d    e fd
„Z d    efd „Z d e d dd    e    fd„Zy)ÚMaintNotificationsConfiga#
    Configuration class for maintenance notifications handling behaviour. Notifications are received through
    push notifications.
 
    This class defines how the Redis client should react to different push notifications
    such as node moving, migrations, etc. in a Redis cluster.
 
    ÚautoNÚenabledÚproactive_reconnectÚrelaxed_timeoutÚ endpoint_typecó<—||_||_||_||_y)a!
        Initialize a new MaintNotificationsConfig.
 
        Args:
            enabled (bool | "auto"): Controls maintenance notifications handling behavior.
                - True: The CLIENT MAINT_NOTIFICATIONS command must succeed during connection setup,
                otherwise a ResponseError is raised.
                - "auto": The CLIENT MAINT_NOTIFICATIONS command is attempted but failures are
                gracefully handled - a warning is logged and normal operation continues.
                - False: Maintenance notifications are completely disabled.
                Defaults to "auto".
            proactive_reconnect (bool): Whether to proactively reconnect when a node is replaced.
                Defaults to True.
            relaxed_timeout (Number): The relaxed timeout to use for the connection during maintenance.
                If -1 is provided - the relaxed timeout is disabled. Defaults to 20.
            endpoint_type (Optional[EndpointType]): Override for the endpoint type to use in CLIENT MAINT_NOTIFICATIONS.
                If None, the endpoint type will be automatically determined based on the host and TLS configuration.
                Defaults to None.
 
        Raises:
            ValueError: If endpoint_type is provided but is not a valid endpoint type.
        N)r‘r“r’r”)rr‘r’r“r”s     rr/z!MaintNotificationsConfig.__init__¿s#€ð:ˆŒ Ø.ˆÔØ#6ˆÔ Ø*ˆÕrr0c
óœ—|jj›d|j›d|j›d|j›d|j
›d
S)Nz    (enabled=z, proactive_reconnect=z, relaxed_timeout=z, endpoint_type=rM)rDrr‘r’r“r”rs rr4z!MaintNotificationsConfig.__repr__ás`€à~‰~×&Ñ&Ð'ð(Ø—|‘|nð%#Ø#'×#;Ñ#;Ð"<ð=Ø#×3Ñ3Ð4ð5Ø!×/Ñ/Ð2Øð  ð    
rcó —|jdk7S)aK
        Check if the relaxed_timeout is enabled. The '-1' value is used to disable the relaxed_timeout.
        If relaxed_timeout is set to None, it will make the operation blocking
        and waiting until any response is received.
 
        Returns:
            True if the relaxed_timeout is enabled, False otherwise.
        éÿÿÿÿ)r“rs rÚis_relaxed_timeouts_enabledz4MaintNotificationsConfig.is_relaxed_timeouts_enabledës€ð×#Ñ# rÑ)Ð)rrƒÚ
connectionr$cóü—|j |jS    tj|«}|j}|rtj
Stj S#t$rYnwxYw|j«}|rS    tj|«}|j}|rtjStjS#t$rYnwxYwt|«}|rtjStjS)aY
        Determine the appropriate endpoint type for CLIENT MAINT_NOTIFICATIONS command.
 
        Logic:
        1. If endpoint_type is explicitly set, use it
        2. Otherwise, check the original host from connection.host:
           - If host is an IP address, use it directly to determine internal-ip vs external-ip
           - If host is an FQDN, get the resolved IP to determine internal-fqdn vs external-fqdn
 
        Args:
            host: User provided hostname to analyze
            connection: The connection object to analyze for endpoint type determination
 
        Returns:
        ) r”Ú    ipaddressÚ
ip_addressÚ
is_privaterr r"rUÚget_resolved_ipr!r#r)rrƒršÚip_addrržÚ resolved_ips      rÚget_endpoint_typez*MaintNotificationsConfig.get_endpoint_typeösø€ð( × Ñ Ð )Ø×%Ñ%Ð %ð    Ü×*Ñ*¨4Ó0ˆGà ×+Ñ+ˆJÙ/9”<×+Ñ+Ð W¼|×?WÑ?WÐ WøÜò    á ð    úð
!×0Ñ0Ó2ˆ á ð Ü#×.Ñ.¨{Ó;Ø$×/Ñ/
ñ"ô!×.Ñ.ðô&×3Ñ3ðøô
ò áð úô
& dÓ+ˆ
Ù-7Œ|×)Ñ)ÐW¼\×=WÑ=WÐWs/š2AÁ AÁ    A)Á(A)Á?2CÂ2Cà   Cà C)rTé
N)rrrrrr<rrr    rr/r=r4r™r¢rrrrrµs’„ñð17Ø$(Ø,.Ø04ñ  +àt˜W V™_Ð,Ñ-ð +ð"ð +ð" &Ñ)ð     +ð
   Ñ-ó  +ðD
˜#ó
ð    *¨Tó    *ð4XØð4XØ%Kð4Xà    ô4Xrrcól—eZdZdddeddfd„Zdd„Zd„Zd    „Zd
efd „Z    d
e
fd „Z dd e e fd„Zd
e
fd„Zy)ÚMaintNotificationsPoolHandlerÚpoolr%Úconfigr0Ncó~—||_||_t«|_t    j
«|_d|_yr])r¦r§ÚsetÚ_processed_notificationsÚ    threadingÚRLockÚ_lockrš)rr¦r§s   rr/z&MaintNotificationsPoolHandler.__init__.s1€ð
ˆŒ    ØˆŒ Ü(+«ˆÔ%Ü—_‘_Ó&ˆŒ
؈rcó—||_yr])rš)rršs  rÚset_connectionz,MaintNotificationsPoolHandler.set_connection9s    €Ø$ˆrcó˜—t|j|j«}|j|_|j|_d|_|Sr])r¥r¦r§rªr­rš)rÚcopys  rÚget_handler_for_connectionz8MaintNotificationsPoolHandler.get_handler_for_connection<s=€ô-¨T¯Y©Y¸¿ ¹ ÓDˆØ(,×(EÑ(EˆÔ%Ø—Z‘ZˆŒ
؈ŒØˆ rcóԗ|j5t|j«D].}|j«sŒ|jj    |«Œ0    ddd«y#1swYyxYwr])r­Útuplerªr2Úremove©rÚ notifications  rÚremove_expired_notificationsz:MaintNotificationsPoolHandler.remove_expired_notificationsFs^€Ø Z‰Zñ    GÜ % d×&CÑ&CÓ Dò G Ø×*Ñ*Õ,Ø×1Ñ1×8Ñ8¸ÕFñ G÷    G÷    Gñ    Gús)A·AÁA'r·có–—|j«t|t«r|j|«St    j
d|›«y©NzUnhandled notification type: )r¸rSr?Úhandle_node_moving_notificationÚloggingÚerrorr¶s  rÚhandle_notificationz1MaintNotificationsPoolHandler.handle_notificationLs>€Ø ×)Ñ)Ô+ä lÔ$:Ô ;Ø×7Ñ7¸ ÓEÐ Eä M‰MÐ9¸,¸ÐHÕ Irc óV—|jjs|jj«sy|j5||jvr
    ddd«y|j
j5|jjs|jj«r |j r|j j«nd}t|j
dd«r|j
jd«|j
jtjt|«|jj|j|ddd¬«|jjr\|j|j!|«n>t#j$|j&dz |j |f¬«j)«tjt|«dœ}|j|j+d    |ji«|jj«r<|j+|jj|jjd
œ«|j
j,d i|¤Žt|j
dd«r|j
jd«ddd«t#j$|j&|j.|f¬«j)«|jj1|«ddd«y#1swYŒhxYw#1swYyxYw) NÚset_in_maintenanceFTÚconnected_address)ÚstateÚmaintenance_notification_hashr“Ú host_addressÚmatching_addressÚmatching_patternÚupdate_notification_hashÚinclude_free_connectionsé)Úargs)Úmaintenance_staterÃrƒ)Úsocket_timeoutÚsocket_connect_timeoutr)r§r’r™r­rªr¦ršÚ getpeernameÚgetattrrÀÚupdate_connections_settingsr rrVr“r@Úrun_proactive_reconnectr«ÚTimerr)ÚstartÚupdateÚupdate_connection_kwargsÚhandle_node_moved_notificationÚadd)rr·Úmoving_address_srcÚkwargss    rr»z=MaintNotificationsPoolHandler.handle_node_moving_notificationTsœ€à— ‘ ×/Ò/Ø—K‘K×;Ñ;Ô=à Ø Z‰ZñS    <ؘt×<Ñ<Ñ<ð÷ S    <ðS    <ð—‘—‘ñD <à—K‘K×3Ò3Ø—{‘{×>Ñ>Õ@ð:>¿º˜Ÿ™×3Ñ3Ô5Èdð'ô˜tŸy™yÐ*>ÀÔF🠠  ™    ×4Ñ4°TÔ:ð—I‘I×9Ñ9Ü.×5Ñ5Ü6:¸<Ó6HØ(,¯ © ×(CÑ(CØ%1×%?Ñ%?Ø);Ø)<Ø15Ø15ð:ô    ð—{‘{×6Ò6Ø'×5Ñ5ÐAØ ×8Ñ8Ð9KÕLä%ŸO™OØ ,× 0Ñ 0°1Ñ 4Ø $× <Ñ <Ø&8Ð%:ô÷$™eœgô.>×-DÑ-DÜ9=¸lÓ9Kñ$Fð$×1Ñ1Ð=🠙 à &¨ ×(BÑ(Bðôð
—{‘{×>Ñ>Ô@ØŸ ™ à26·+±+×2MÑ2MØ:>¿+¹+×:UÑ:Uñôð 7D—I‘I×6Ñ6Ñ@¸Ò@ä˜tŸy™yÐ*>ÀÔFØŸ    ™    ×4Ñ4°UÔ;÷ID <ôL O‰OØ× Ñ Ø×3Ñ3Ø"_ô ÷‰eŒgà × )Ñ )× -Ñ -¨lÔ ;÷gS    <ðS    <÷D <ðD <ú÷S    <ðS    <ús+¾LÁLÁ-H?LÊ,ALÌL    ÌLÌL(rØcó —|j5|jj5|jj|¬«|jj|¬«ddd«ddd«y#1swYŒxYw#1swYyxYw)zå
        Run proactive reconnect for the pool.
        Active connections are marked for reconnect after they complete the current command.
        Inactive connections are disconnected and will be connected on next use.
        )rØN)r­r¦Ú'update_active_connections_for_reconnectÚdisconnect_free_connections)rrØs  rrÑz5MaintNotificationsPoolHandler.run_proactive_reconnect¯s~€ð Z‰Zñ     Ø—‘—‘ñ
ð—    ‘    ×AÑAØ'9ðBôð
—    ‘    ×5Ñ5Ø'9ð6ô÷
÷     ð     ÷
ú÷     ð     ús"A:¤9A.ÁA:Á.A7    Á3A:Á:Bc ó—t|«}|j5|jjj    d«|k(r¡|jjj    d«}|jjj    d«}|jjj    d«}t
j d|||dœ}|jjd i|¤Ž|jj5|jj«}|jj}|jjdt
j d|dd    ||d    ¬
«    ddd«ddd«y#1swYŒxYw#1swYyxYw) zN
        Handle the cleanup after a node moving notification expires.
        rÃÚorig_host_addressÚorig_socket_timeoutÚorig_socket_connect_timeoutN)rËrÃrƒrÌrÍr˜Únotification_hashT)    r“rÂrÃÚmatching_notification_hashrÆrÇÚreset_relaxed_timeoutÚreset_host_addressrÈr) rVr­r¦Úconnection_kwargsÚgetr rrÕr§r™r’rÐ)    rr·ráÚ    orig_hostrßÚorig_connect_timeoutrÙrãräs             rrÖz<MaintNotificationsPoolHandler.handle_node_moved_notificationÂs`€ô! Ó.Ðà Z‰Zñ&    ð
—    ‘    ×+Ñ+×/Ñ/Ð0OÓPØ$ò%ð!ŸI™I×7Ñ7×;Ñ;Ð<OÓP    Ø&*§i¡i×&AÑ&A×&EÑ&EØ)ó'Ð#ð(,§y¡y×'BÑ'B×'FÑ'FØ1ó(Ð$ô*:×)>Ñ)>Ø59Ø%Ø&9Ø.Bñ  ð3—    ‘    ×2Ñ2Ñ<°VÒ<à—‘—‘ñ Ø(,¯ © ×(OÑ(OÓ(QÐ%Ø%)§[¡[×%DÑ%DÐ"à—    ‘    ×5Ñ5Ø$&Ü*×/Ñ/Ø26Ø/@Ø%8Ø-1Ø*?Ø'9Ø-1ð6ô
÷     ÷1&    ð&    ÷0 ð ú÷1&    ð&    ús%˜C E8Ã8A#E,ÅE8Å,E5    Å1E8Å8F)ršr$r])rrrrr/r¯r²r¸r'r¾r?r»rr=rÑrÖrrrr¥r¥-so„ð    à8ð    ð)ð    ð
ó        ó%òòGð JÐ0GóJðY<Ð<RóY<ñv¸(À3¹-óð&,Ð;Qô,rr¥cón—eZdZUedededediZee    de
fe d<ddde dd    fd
„Z d efd „Zd efd„Zd„Zy    )Ú#MaintNotificationsConnectionHandlerérr'Ú_NOTIFICATION_TYPESršr$r§r0Ncó —||_||_yr])ršr§)rršr§s   rr/z,MaintNotificationsConnectionHandler.__init__ús€ð
%ˆŒØˆ rr·cóê—|jj|jd«}|€tjd|›«y|r |j t j«y|j«yrº)    rìrærDr¼r½Ú%handle_maintenance_start_notificationr rÚ)handle_maintenance_completed_notification)rr·Únotification_types   rr¾z7MaintNotificationsConnectionHandler.handle_notificationsc€à ×4Ñ4×8Ñ8¸×9OÑ9OÐQUÓVÐà Ð $Ü M‰MÐ9¸,¸ÐHÔ IØ á Ø × 6Ñ 6Ô7G×7SÑ7SÕ Tà × :Ñ :Õ <rrËcóh—|jjtjk(s|jj «sy||j_|jj |jj¬«|jj|jj«y)N)Útmp_relaxed_timeout)    ršrËr rr§r™Úset_tmp_settingsr“Úupdate_current_socket_timeout)rrËs  rrïzIMaintNotificationsConnectionHandler.handle_maintenance_start_notifications~€ð O‰O× -Ñ -Ô1A×1HÑ1HÒ HØ—;‘;×:Ñ:Ô<à à,=ˆ‰Ô)Ø ‰×(Ñ(Ø $§ ¡ × ;Ñ ;ð    )ô    
ð     ‰×5Ñ5°d·k±k×6QÑ6QÕRrcó4—|jjtjk(s|jj «sy|jj d¬«|jjd«tj|j_y)NT)rãr˜)    ršrËr rr§r™Úreset_tmp_settingsrõrrs rrðzMMaintNotificationsConnectionHandler.handle_maintenance_completed_notificationsk€ð O‰O× -Ñ -Ô1A×1HÑ1HÒ HØ—;‘;×:Ñ:Ô<à Ø ‰×*Ñ*ÀÐ*ÔFð     ‰×5Ñ5°bÔ9Ü,<×,AÑ,Aˆ‰Õ)r)rrrr[rxrnr~rìÚdictrfr;Ú__annotations__rr/r'r¾r rïrðrrrrêrêñs{…ð    " 1Ø# QØ  !Ø" Að    GИ˜dÐ#<Ñ=¸sÐBÑCóðà:ðð)ðð
ó    ð =Ð0Gó =ðSØ!1óSó  Brrê)"Úenumrœr¼rˆr«r+ÚabcrrÚtypingrrrrÚ redis.typingr    ÚEnumr rÚredis.connectionr$r%r'r?r[rnrxr~r=r<rrr¥rêrrrú<module>rsàðÛ ÛÛÛ    ÛÛ ß#ß:Ó:åô t—y‘yô ô 4—9‘9ô ñ÷ô L ˜côL ô^M
Ð4ôM
ô`.=Р7ô.=ôb/=Ð6ô/=ôd.=Ð"9ô.=ôb/=Ð!8ô/=ðd%˜3ð% 4ó%÷PuXñuX÷pAñA÷H9Bò9Br