[Twisted-Python] spread.sturdy

Paul Boehm typo at soniq.net
Tue Jul 16 03:13:42 MDT 2002


when i restart a PB server to which i've connected via spread.sturdy is
restarted i get the following traceback instead of a reconnect.

i can partially solve this by catching pb.ProtocolError inside spread.sturdy,
which seems to work, except that i get an AlreadyConnected error after the
the callRemote is reproduced after connecting.

does anyone know how to correctly fix this?

Traceback (most recent call last):
  File "./twisted/web/widgets.py", line 253, in display
    x = eval(elem, namespace, namespace)
  File "<string>", line 0, in ?

  File "./test.py", line 15, in getFilePerspective
    return ['<b>',
  File "./twisted/spread/sturdy.py", line 77, in callRemote
    return apply(self.reference.callRemote, (method,)+args, kw)
  File "./twisted/spread/pb.py", line 322, in callRemote
    return self.broker._sendMessage('',self.perspective, self.luid, name, args, kw)
  File "./twisted/spread/pb.py", line 739, in _sendMessage
    raise ProtocolError("Calling Stale Broker")
twisted.spread.pb.ProtocolError: Calling Stale Broker


thanks,
  paul




More information about the Twisted-Python mailing list