This repository has been 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
Labels
A-Federation
good first issue
Good for newcomers
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Z-Sentry
Issue was discovered by looking at Sentry reports on Matrix.org
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 anIncompleteJSONError
.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.The text was updated successfully, but these errors were encountered: