[issue25441] StreamWriter.drain() unreliably reports closed sockets

2015-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17f76258d11d by Guido van Rossum in branch '3.4': Issue #25441: asyncio: Raise error from drain() when socket is closed. https://hg.python.org/cpython/rev/17f76258d11d New changeset d30fbc55194d by Guido van Rossum in branch '3.5': Issue #25441: asy

[issue25441] StreamWriter.drain() unreliably reports closed sockets

2015-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 17f76258d11d, d30fbc55194d and 08adb4056b5f. -- assignee: -> gvanrossum resolution: -> fixed status: open -> closed ___ Python tracker

[issue25441] StreamWriter.drain() unreliably reports closed sockets

2015-10-19 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: Yes, this patch fixes the problem (in both this example and my real application). Thanks! -- ___ Python tracker ___ ___

[issue25441] StreamWriter.drain() unreliably reports closed sockets

2015-10-19 Thread Guido van Rossum
Changes by Guido van Rossum : -- versions: +Python 3.4, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25441] StreamWriter.drain() unreliably reports closed sockets

2015-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: See also this upstream git issue: https://github.com/python/asyncio/issues/263. Let me know whether the patch suggested there works for you, and I'll prioritize getting it checked in. (Help would also be appreciated, e.g. in the form of a unittest.) ---

[issue25441] StreamWriter.drain() unreliably reports closed sockets

2015-10-19 Thread Sebastien Bourdeauducq
New submission from Sebastien Bourdeauducq: 1. Open a listening socket: $ nc6 -l -p 1066 2. Run the following (tested here on Linux): import asyncio async def bug(): reader, writer = await asyncio.open_connection("::1", "1066") while True: writer.write("foo\n".encode())