Skip to content
Snippets Groups Projects
Commit 13c004b5 authored by Arseniy Alekseyev's avatar Arseniy Alekseyev
Browse files

wireprotoserver: ensure that output stream gets flushed on exception

Previously flush was happening due to Python finalizer being run on
`BufferedWriter`. With upgrade to Python 3.11 this started randomly
failing.

My guess is that the finalizer on the raw `FileIO` object may
be running before the finalizer of `BufferedWriter` has a chance to run.

At any rate, since we're not relying on finalizers in the happy case
we should also not rely on them in case of exception.
parent 74230abb
No related branches found
No related tags found
2 merge requests!845merge stable into default,!832wireprotoserver: ensure that output stream gets flushed on exception
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment