[issue23236] asyncio: add timeout to StreamReader read methods

2018-09-19 Thread STINNER Victor
STINNER Victor added the comment: This feature request doesn't seem popular and I lost track of it, so I just close the issue. Sorry. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue23236] asyncio: add timeout to StreamReader read methods

2016-04-20 Thread Alexander Mohr
Alexander Mohr added the comment: any updates on this? I think this would be perfect for https://github.com/aio-libs/aiobotocore/issues/31 -- nosy: +thehesiod ___ Python tracker __

[issue23236] asyncio: add timeout to StreamReader read methods

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: Copy of the feature requets by Guido van Rossum: https://code.google.com/p/tulip/issues/detail?id=96 Often you want to stop servicing (or using) a connection when there is no activity in a given time. You can do this by wrapping all your read calls in wait_fo

[issue23236] asyncio: add timeout to StreamReader read methods

2015-01-13 Thread STINNER Victor
New submission from STINNER Victor: 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.