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

2019-01-05 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 67ba547cf001d6b975cf6900aaf2bd5508dc6a87 by Andrew Svetlov 
(Vladimir Matveev) in branch 'master':
bpo-23057: Use 'raise' to emulate ctrl-c in proactor tests (#11274)
https://github.com/python/cpython/commit/67ba547cf001d6b975cf6900aaf2bd5508dc6a87


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-12-30 Thread Guido van Rossum


Change by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-12-30 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

GH-11274 desperately needs to be addressed! The 2 Windows 7 buildbots have been 
failing on 3.x since the merge of GH-11135 on 12-18. Either that or the commit 
b5c8cfa needs to be reverted.

Being the holiday season and all I can see the extra time needed for Python 
development is sparse, but 2 weeks without ensuring a commit doesn't break 
stable buildbots seems a bit much.

--
nosy: +jkloth

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-12-22 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +10519

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-12-18 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8 -Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-12-18 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset b5c8cfa1da17c6f3acac80a0afca7f7104fb9589 by Andrew Svetlov 
(Vladimir Matveev) in branch 'master':
bpo-23057: add loop self socket as wakeup fd for signals (#11135)
https://github.com/python/cpython/commit/b5c8cfa1da17c6f3acac80a0afca7f7104fb9589


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-12-12 Thread Vladimir Matveev


Change by Vladimir Matveev :


--
keywords: +patch
pull_requests: +10367
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-09-07 Thread Chris Warrick


Change by Chris Warrick :


--
nosy: +Kwpolska

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-09-01 Thread Eryk Sun

Changes by Eryk Sun :


--
stage:  -> needs patch
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-07-07 Thread David Robertson

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 rep...@bugs.python.org
http://bugs.python.org/issue23057
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-07-07 Thread Adam Bartoš

Adam Bartoš added the comment:

David Robertson: The behaviour you pointed out is a consequence of the general 
issue: signals on Windows aren't fully supported. Basically, they cannot 
interrupt the event loop when every coroutine is waiting for something. 
Instead, they are fired when something happens – some data are recieved or some 
timer reaches zero. In your case it was the connection of the client or the 
message it sent.

This is the right issue related to your problem. Hopefully, it will be fixed 
eventually. A current workaround is to schedule a task which periodically 
sleeps for an amount of time. For example, if it allways sleeps for one second, 
then you will wait for KeyboardInterrupt at most one second.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23057
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-07-05 Thread Adam Bartoš

Adam Bartoš added the comment:

I've also run into this issue (see 
https://mail.python.org/pipermail/python-list/2015-July/693496.html and the 
following thread). I'm adding some small examples showing the behavior.

import asyncio

async def wait():
await asyncio.sleep(5)

loop = asyncio.get_event_loop()
loop.run_until_complete(wait())

---

The following even smaller example by Terry Reedy and the OP from 
http://stackoverflow.com/questions/27480967/why-does-the-asyncios-event-loop-suppress-the-keyboardinterrupt-on-windows
 cannot be interrupted other way then shuting down whole process:

asyncio.get_event_loop().run_forever()

---

It would be nice the patch mentioned was eventually applied.

--
nosy: +Drekin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23057
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-04-13 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Victor's patch has moved to https://github.com/python/tulip/issues/191 .

--
nosy: +akuchling

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23057
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-01-26 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
title: asyncio loop on Windows should stop on keyboard interrupt - [Windows] 
asyncio: support signal handlers on Windows (feature request)
type: behavior - enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23057
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com