Fix msg encoding

- Change varint-prefix encode to fixedint-prefix(4 bytes) encode.
This commit is contained in:
mhchia
2019-08-17 21:41:17 +08:00
parent 22b1a5395d
commit bb7d37fd4f
4 changed files with 38 additions and 15 deletions

View File

@ -79,7 +79,9 @@ class Multiselect(IMultiselectMuxer):
# Confirm that the protocols are the same
if not validate_handshake(handshake_contents):
raise MultiselectError("multiselect protocol ID mismatch")
raise MultiselectError(
f"multiselect protocol ID mismatch: handshake_contents={handshake_contents}"
)
# Handshake succeeded if this point is reached