File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,13 +209,13 @@ async def sio_connect(self, director_bearer_token: str) -> None:
209209 if self .session is not None :
210210 # Create a new session using the caller's connector so engineio
211211 # can safely close it in _reset() without affecting the caller's
212- # session.
212+ # session. Setting ssl_verify=True prevents engineio from
213+ # creating its own no-verify SSLContext, allowing the
214+ # connector's SSL configuration to take effect.
213215 http_session = aiohttp .ClientSession (
214216 connector = self .session .connector , connector_owner = False
215217 )
216- self ._sio = socketio .AsyncClient (
217- ssl_verify = False , http_session = http_session
218- )
218+ self ._sio = socketio .AsyncClient (ssl_verify = True , http_session = http_session )
219219 else :
220220 self ._sio = socketio .AsyncClient (ssl_verify = False )
221221 self ._sio .register_namespace (
You can’t perform that action at this time.
0 commit comments