Is Pyro signal safe?

I have been using Pyro 3 for a while now, with great success, but sometimes I noticed that when a signal, such as SIGHUP or SIGINT, appears when Pyro makes some kind of remote connection, the process freezes, therefore, the question is whether the signal is safe Pyro?

Thanks in advance.

+3
source share
1 answer

This seems to be the problem here by default. Python sets up handlers for SIGINT and SIGTERM that raise exceptions. If you still get a signal while executing some Pyro compilers, an exception occurs and it goes looking for the corresponding except clause, not ending with what it does, if you then try to use Pyro again, for example, in the / finally exception, you can get Problems. In my case, he sent some messages, finally, to the log via a queue that was proxied to another process using Pyro.

+2
source

Source: https://habr.com/ru/post/1787668/


All Articles