[Twisted-Python] PB error

Don Smith donwsmith at gmail.com
Mon Jul 17 14:26:29 MDT 2006


I have a PB server, and one of my clients keeps getting this error:

Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\twisted\python\log.py", line 53, in
callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "C:\Python24\Lib\site-packages\twisted\python\log.py", line 38, in
callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "C:\Python24\Lib\site-packages\twisted\python\context.py", line 59,
in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "C:\Python24\Lib\site-packages\twisted\python\context.py", line 37,
in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "C:\Python24\Lib\site-packages\twisted\internet\selectreactor.py",
line 139, in _doReadOrWrite
    why = getattr(selectable, method)()
  File "C:\Python24\Lib\site-packages\twisted\internet\tcp.py", line 348, in
doRead
    return self.protocol.dataReceived(data)
  File "C:\Python24\Lib\site-packages\twisted\spread\banana.py", line 184,
in dataReceived
    gotItem(item)
  File "C:\Python24\Lib\site-packages\twisted\spread\banana.py", line 114,
in gotItem
    self.callExpressionReceived(item)
  File "C:\Python24\Lib\site-packages\twisted\spread\banana.py", line 81, in
callExpressionReceived
    self.expressionReceived(obj)
  File "C:\Python24\Lib\site-packages\twisted\spread\pb.py", line 559, in
expressionReceived
    method(*sexp[1:])
  File "C:\Python24\Lib\site-packages\twisted\spread\pb.py", line 926, in
proto_answer
    d = self.waitingForAnswers[requestID]
exceptions.KeyError: 113
connection lost, reason <twisted.python.failure.Failure exceptions.KeyError>

Note that the server and client are on the same machine. The client is
reading log files and sending certain lines to the PB server. This is fairly
high volume, and when it seems to peak this happens.

I'm also using a ReconnectingPBClientFactory, but it doesn't reconnect when
this error occures.

Any ideas out there?

Thanks,

Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20060717/2661d41f/attachment.html>


More information about the Twisted-Python mailing list