Author socketpair
Recipients gvanrossum, j1m, socketpair, vstinner, yselivanov
Date 2016-06-29.15:17:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467213460.75.0.5616956938.issue27386@psf.upfronthosting.co.za>
In-reply-to
Content
Also I recommend you to use asyncio streams, instead of reinventing wheels.

So, reading your command will look like:

data = await stream.read_exactly(4)
(len,) = unpack(">I", data)
command = await stream.read_exactly(len)
History
Date User Action Args
2016-06-29 15:17:40socketpairsetrecipients: + socketpair, gvanrossum, vstinner, j1m, yselivanov
2016-06-29 15:17:40socketpairsetmessageid: <1467213460.75.0.5616956938.issue27386@psf.upfronthosting.co.za>
2016-06-29 15:17:40socketpairlinkissue27386 messages
2016-06-29 15:17:40socketpaircreate