matrix-org / sygnal

Sygnal: reference Push Gateway for Matrix
Apache License 2.0
153 stars 139 forks source link

Explicitly configure the aioapns event loop so proxying works when configured #360

Closed devonh closed 4 months ago

devonh commented 5 months ago

When the aioapns dependency was updated, they removed the ability to inject an event loop. This change sets the event loop manually after creating the apns client.

We use a custom event loop in this case in order to override create_connection when a proxy is configured to force all traffic over the proxy.

Fixes https://github.com/element-hq/backend-internal/issues/22