py-libp2p/tests/constants.py

5 lines
187 B
Python
Raw Permalink Normal View History

2019-09-06 17:59:39 +08:00
# Just a arbitrary large number.
# It is used when calling `MplexStream.read(MAX_READ_LEN)`,
# to avoid `MplexStream.read()`, which blocking reads until EOF.
MAX_READ_LEN = 2 ** 32 - 1