@@ -115,6 +115,7 @@ async def connect(self):
115
115
** self ._connect_kwargs )
116
116
self ._pool ._working_addr = con ._addr
117
117
self ._pool ._working_opts = con ._opts
118
+ self ._pool ._working_ssl_context = con ._ssl_context
118
119
119
120
else :
120
121
# We've connected before and have a resolved address
@@ -126,9 +127,10 @@ async def connect(self):
126
127
else :
127
128
host , port = self ._pool ._working_addr
128
129
129
- con = await self ._pool ._connect (host = host , port = port ,
130
- loop = self ._pool ._loop ,
131
- ** self ._pool ._working_opts )
130
+ con = await self ._pool ._connect (
131
+ host = host , port = port , loop = self ._pool ._loop ,
132
+ ssl = self ._pool ._working_ssl_context ,
133
+ ** self ._pool ._working_opts )
132
134
133
135
if self ._init is not None :
134
136
await self ._init (con )
@@ -248,7 +250,7 @@ class Pool:
248
250
"""
249
251
250
252
__slots__ = ('_queue' , '_loop' , '_minsize' , '_maxsize' ,
251
- '_working_addr' , '_working_opts' ,
253
+ '_working_addr' , '_working_opts' , '_working_ssl_context' ,
252
254
'_holders' , '_initialized' , '_closed' )
253
255
254
256
def __init__ (self , * connect_args ,
@@ -292,6 +294,7 @@ def __init__(self, *connect_args,
292
294
293
295
self ._working_addr = None
294
296
self ._working_opts = None
297
+ self ._working_ssl_context = None
295
298
296
299
self ._closed = False
297
300
0 commit comments