mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 14:40:53 +00:00
Fix close behavior
This commit is contained in:
17
libp2p/network/stream/exceptions.py
Normal file
17
libp2p/network/stream/exceptions.py
Normal file
@ -0,0 +1,17 @@
|
||||
from libp2p.exceptions import BaseLibp2pError
|
||||
|
||||
|
||||
class StreamError(BaseLibp2pError):
|
||||
pass
|
||||
|
||||
|
||||
class StreamEOF(StreamError, EOFError):
|
||||
pass
|
||||
|
||||
|
||||
class StreamReset(StreamError):
|
||||
pass
|
||||
|
||||
|
||||
class StreamClosed(StreamError):
|
||||
pass
|
||||
Reference in New Issue
Block a user