Use of FuturesUnordered
may prevent SwarmFuture
from making progress.
#190
Labels
priority:important
The changes needed are critical for libp2p, or are blocking another project
PR #163 replaced various uses of vectors of futures with
FuturesUnordered
s and PR #169 wanted to revert those changes because the change resulted in problems, namely thatSwarmFuture
could stall. One example is starting theecho-server
example, connecting to it and disconnecting again, without sending valid data:AFAICT this is because notifications of tasks of
Future
s that have been added toFuturesUnordered
will not be propagated untilFuturesUnordered::poll
is called. Presumably this problem does not always show up on the happy path because more notifications triggerSwarmFuture::poll
which in turn pollsFuturesUnordered
.The text was updated successfully, but these errors were encountered: