Message301753
The socket.makefile(newline=...) parameter only affects text mode, but StreamRequestHandler’s “rfile” attribute works in byte mode. You could call makefile or TextIOWrapper yourself, but neither of these options support reading null-terminated “lines” or packets.
I think it would be best to implement this more generally, e.g. via Issue 1152248 or Issue 17083. Perhaps like the “asyncio.StreamReader.readuntil” or “telnetlib.Telnet.read_until” methods, rather than a stream configuration option. |
|
Date |
User |
Action |
Args |
2017-09-08 22:52:04 | martin.panter | set | recipients:
+ martin.panter, tfeldmann |
2017-09-08 22:52:04 | martin.panter | set | messageid: <1504911124.57.0.695522208261.issue31366@psf.upfronthosting.co.za> |
2017-09-08 22:52:04 | martin.panter | link | issue31366 messages |
2017-09-08 22:52:04 | martin.panter | create | |
|