Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Add remote methode deadlock detection on the server side #94

Open
arnaudiko opened this issue Jul 26, 2024 · 0 comments
Open

[FEAT] Add remote methode deadlock detection on the server side #94

arnaudiko opened this issue Jul 26, 2024 · 0 comments

Comments

@arnaudiko
Copy link

I'm currently trying to detect a thread deadlocked in the remote method on the server side. The goal is to auto restart the server in this case. To do that I have create a custom Daemon. In my custome Daemon, I add a decoration to the "handleRequest" methode to measure the time between the input and the output (for each thread). Then I check, in an overload of the "housekeeping", if we have a deadlock in one of the watched thread.

It's works but if the client dosen't send request during a while, my code detect fault deadlock. This is du to the "protocol.recv_stub" call in the "pyro.Deamon.handleRequest" methode that wait a new client request.

Is there another solution for my need? If not, can you please add a system in pyro to manage my need ? or add hooks before and after the calling a a remote method on the server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant