[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-07-05 Thread LtWorf


LtWorf  added the comment:

This looks related to: https://bugs.python.org/issue32443

--
nosy: +tiposchi

___
Python tracker 

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



[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-02-27 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Other threads are not related.

Speaking about the main thread that runs an event loop with the signal handler 
installed -- the handler is executed along with other async code.
If the loop executes some user-provides async task -- it executes the signal 
handler as well if needed.

This is why I suspect that the discussed program is not completely correct.

--

___
Python tracker 

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



[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-02-26 Thread Roger Dahl


Roger Dahl  added the comment:

> I'm sorry. but loop.set_signal_handler() method doesn't exist.

Oops, fixed.

> Assuming you mean loop.add_signal_handler() method, I would say that a 
> minute-long delay is a sign of long blocking calls in your program.

During the delay for the callback to occur, I see my program logging work 
performed on other asyncio tasks and receiving timer events from another 
thread. So, not long blocking?

--

___
Python tracker 

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



[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-02-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Assuming you mean loop.add_signal_handler() method, I would say that a 
minute-long delay is a sign of long blocking calls in your program.

Typical asyncio program blocks the loop for 1-10 milliseconds at most, and 
signal handlers are called with this delay.
This is not your case as I see.

--
title: asyncio loop.set_signal_handler() may not behave as expected -> asyncio 
loop.add_signal_handler() may not behave as expected

___
Python tracker 

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