Jeff
unread,Oct 2, 2009, 6:11:05 PM10/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rpyc
Hello Everyone,
I finally was able to solve the performance problem that I encountered
in my rpyc application. But I don't understand why my solution
worked, and I'd appreciate any insights that you might have.
My application consists of a chain of processes, each talking to the
next using rpyc. When I began, each process in the chain used a
BgServingThread to keep the next process responsive. But what I found
was that the BgServingThread didn't have the effect I thought it would
- instead, I would see some of the processes hang, or at a minimum
slow down drastically. I am now avoiding the problem by adding an
explicit conn.serve() in the main loop for each process.
But why does this work? It seems to me that my explicit conn.serve()
call is doing the same thing that BgServingThread does, except that
it's not running in a thread. Maybe somehow the thread that my
BgServingThread runs in has died? How would I know?
Jeff