Skip to content

Only load ssl default ssl certificates once#35

Merged
kbickar merged 1 commit into
scottbonline:stablefrom
bdraco:ssl_cert_load_async
May 12, 2020
Merged

Only load ssl default ssl certificates once#35
kbickar merged 1 commit into
scottbonline:stablefrom
bdraco:ssl_cert_load_async

Conversation

@bdraco
Copy link
Copy Markdown
Contributor

@bdraco bdraco commented May 11, 2020

Fixes I/O in the event loop

Each update was creating a new ssl context which was
doing blocking i/o to load the default ssl certs

homeassistant/components/sense/__init__.py, line 144: await gateway.update_realtime() was calling SSLContext.load_default_certs from when the websocket is created. Normally this goes unnoticed, however since there are frequent connects and disconnects of the websocket it was noticeable.

Fixes I/O in the event loop

Each update was creating a new ssl context which was
doing blocking i/o to load the default ssl certs
@kbickar kbickar merged commit 5f910b6 into scottbonline:stable May 12, 2020
@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented May 12, 2020

Thanks @kbickar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants