mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-23 19:30:15 +00:00
add TODO to explain why half closed tests failed
This commit is contained in:
parent
7f8eb0272e
commit
30a496de5e
@ -357,6 +357,12 @@ suite "Mplex":
|
||||
expect LPStreamEOFError:
|
||||
waitFor(testClosedForWrite())
|
||||
|
||||
# TODO: this locks up after removing sleepAsync as a
|
||||
# synchronization mechanism in mplex. I believe this
|
||||
# is related to how chronos schedules callbacks in select,
|
||||
# which effectively puts to infinite sleep when there
|
||||
# are no more callbacks, so essentially this sequence of
|
||||
# reads isn't possible with the current chronos.
|
||||
# test "half closed - channel should close for read by remote":
|
||||
# proc testClosedForRead(): Future[void] {.async.} =
|
||||
# proc writeHandler(data: seq[byte]) {.async, gcsafe.} = discard
|
||||
|
Loading…
x
Reference in New Issue
Block a user