[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

David Robertson report at bugs.python.org
Tue Jul 7 18:27:34 CEST 2015


David Robertson added the comment:

Dear all, I have just been trying to understand the TCP Echo example from the asyncio documentation:
https://docs.python.org/3/library/asyncio-protocol.html#protocol-examples
I copied the two examples from the docs into `server.py' and `client.py'. I ran server.py first and hit control-C. This did not close the server as expected. However, if I then ran client.py, the act of sending a message to the server seemed to prompt it to receive the KeyboardInterrupt and close! In turn this caused an OSError to be raised by the client.

Some searching lead me to StackOverflow and then to this bug. I wanted to point out this behaviour, as I didn't see it mentioned in any of the previous comments. Plus, I thought it was a shame that the first example I looked didn't behave as described!

I'm curently running Python 3.3.1 on Windows 7 and I'm using asyncio 3.4.3 from PyPI.

----------
nosy: +David Robertson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23057>
_______________________________________


More information about the Python-bugs-list mailing list