py-libp2p/tests/constants.py
2019-09-06 17:59:39 +08:00

5 lines
187 B
Python

# 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