10 février 2021 09:35 "Niels Sascha Reedijk" <niels.reedijk@xxxxxxxxx> a écrit:
Hi all,
I have been looking at the changes that leorize proposed during their
summer of code. One of the changes [1] is to have the network
operation write directly to a buffer (with the BDataIO) interface that
is owned by the object that requested the data transfer. Since the
network operation is done in a different thread by default, it seems
to me like this is the perfect condition for a data race.
Granted, most callers would probably not touch the data before the
request is completed, but you can imagine that consumers that support
streaming may use an implementation of the BDataIO that allows both
reading and writing.