This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, tfeldmann
Date 2017-09-08.22:52:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504911124.57.0.695522208261.issue31366@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-09-08 22:52:04martin.pantersetrecipients: + martin.panter, tfeldmann
2017-09-08 22:52:04martin.pantersetmessageid: <1504911124.57.0.695522208261.issue31366@psf.upfronthosting.co.za>
2017-09-08 22:52:04martin.panterlinkissue31366 messages
2017-09-08 22:52:04martin.pantercreate