deadlock when two servers call each other - will threads hel

Gordon McMillan gmcm at hypernet.com
Tue Aug 31 11:51:05 EDT 1999


Adrian Eyre asks:
> > This is fine in theory, but in practice it yields deadlocks.  A child can
> be
> > making an XML-RPC call to its parent to forward one change request at the
> > same time the parent is trying to make another call to that child.  Both
> > servers will block in read() waiting for a response that never arrives.
> 
> Is there a non-blocking read() call like the BSD-sockets-style
> select() ?

Wouldn't be RPC then, would it? Message passing beats the pants off 
RPC in everything but simplicity of use.

- Gordon




More information about the Python-list mailing list