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 vstinner
Recipients gvanrossum, vstinner, yselivanov
Date 2015-01-14.00:48:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421196508.1.0.44699876054.issue23236@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch adds an optional timeout parameter to the read(), read_exactly() and readline() methods of StreamReader.

If a single read takes longer than timeout seconds, a asyncio.TimeoutError is raised. The timeout is reset each time new data is received.

Read data is pushed back to the StreamReader buffer if the wait raises an exception (timeout, cancelled, etc.), so it's possible to retry the read later.
History
Date User Action Args
2015-01-14 00:48:29vstinnersetrecipients: + vstinner, gvanrossum, yselivanov
2015-01-14 00:48:28vstinnersetmessageid: <1421196508.1.0.44699876054.issue23236@psf.upfronthosting.co.za>
2015-01-14 00:48:28vstinnerlinkissue23236 messages
2015-01-14 00:48:27vstinnercreate