Skip to content

Commit ee5e6ff

Browse files
authored
further update to the comment to match impl.
1 parent ab1d60c commit ee5e6ff

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Lib/multiprocessing/connection.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -810,14 +810,10 @@ def PipeClient(address):
810810
#
811811
# If this RETURNed, the connection remains open: it has been authenticated.
812812
#
813-
# Length prefixes are used consistently even though every step so far has
814-
# always been a singular specific fixed length. This may help us evolve
815-
# the protocol in the future without breaking backwards compatibility.
816-
#
817-
# Similarly the initial challenge message from the serving side has always
818-
# been 20 bytes, but clients can accept a 100+ so using the length of the
819-
# opening challenge message as an indicator of protocol version may work.
820-
813+
# Length prefixes are used consistently. Even on the legacy protocol, this
814+
# was good fortune and allowed us to evolve the protocol by using the length
815+
# of the opening challenge or length of the returned digest as a signal as
816+
# to which protocol the other end supports.
821817

822818
_ALLOWED_DIGESTS = frozenset(
823819
{b'md5', b'sha256', b'sha384', b'sha3_256', b'sha3_384'})

0 commit comments

Comments
 (0)