mplex stream close reset done

This commit is contained in:
zixuanzh
2018-11-20 21:46:18 -05:00
parent e047752d82
commit d83b6ef459
2 changed files with 36 additions and 28 deletions

View File

@ -19,6 +19,7 @@ class Mplex(IMuxedConn):
self.buffers = {}
self.streams = {}
self.stream_queue = asyncio.Queue()
self.conn_lock = asyncio.Lock()
# The initiator need not read upon construction time.
# It should read when the user decides that it wants to read from the constructed stream.