Add detection for disconnections in mplex

This commit is contained in:
mhchia
2019-09-13 15:29:24 +08:00
parent 393b51a744
commit 2d8e02b7eb
7 changed files with 89 additions and 51 deletions

View File

@ -1,7 +1,6 @@
from libp2p.stream_muxer.exceptions import (
MuxedConnClosed,
MuxedConnError,
MuxedConnShuttingDown,
MuxedConnUnavailable,
MuxedStreamClosed,
MuxedStreamEOF,
MuxedStreamReset,
@ -12,11 +11,7 @@ class MplexError(MuxedConnError):
pass
class MplexShuttingDown(MuxedConnShuttingDown):
pass
class MplexClosed(MuxedConnClosed):
class MplexUnavailable(MuxedConnUnavailable):
pass