Message269517
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) |
|
Date |
User |
Action |
Args |
2016-06-29 15:17:40 | socketpair | set | recipients:
+ socketpair, gvanrossum, vstinner, j1m, yselivanov |
2016-06-29 15:17:40 | socketpair | set | messageid: <1467213460.75.0.5616956938.issue27386@psf.upfronthosting.co.za> |
2016-06-29 15:17:40 | socketpair | link | issue27386 messages |
2016-06-29 15:17:40 | socketpair | create | |
|