This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Close ijson
coroutines ourselves instead of letting the GC close them #13293
Closed
Description
synapse/synapse/federation/transport/client.py
Lines 928 to 930 in d9f0922
synapse/synapse/federation/transport/client.py
Lines 972 to 974 in d9f0922
These close()
calls were added in #12875, but I overlooked that we'd only close the first coroutine if it raised an IncompleteJSONError
.
We need to close all coroutines, even when any of them raise an error.
Until we fix this properly, we'll get unhelpful Exception ignored in: <generator object utf8_encoder at 0x7f87c9b1ccf0>
errors in sentry without a stack trace or logging context.