Message233978
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. |
|
Date |
User |
Action |
Args |
2015-01-14 00:48:29 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov |
2015-01-14 00:48:28 | vstinner | set | messageid: <1421196508.1.0.44699876054.issue23236@psf.upfronthosting.co.za> |
2015-01-14 00:48:28 | vstinner | link | issue23236 messages |
2015-01-14 00:48:27 | vstinner | create | |
|