[rabbitmq-discuss] pika - HeartbeatChecker Bug?

yoav glazner yoavglazner at gmail.com
Wed Feb 23 09:48:05 GMT 2011


Hi,

I think there is a bug in pika's HeartbeatChecker.
When I run these scripts I get:
Traceback (most recent call last):

  File "D:\Testing\src\recv_demo.py", line 35, in <module>
    connection.ioloop.start()
  File "C:\Python26\Lib\site-packages\pika\adapters\select_connection.py",
line 184, in start
    self.poller.start()
  File "C:\Python26\Lib\site-packages\pika\log.py", line 107, in debug_log
    return method(*args, **kwargs)
  File "C:\Python26\Lib\site-packages\pika\adapters\select_connection.py",
line 264, in start
    self.process_timeouts()
  File "C:\Python26\Lib\site-packages\pika\adapters\select_connection.py",
line 250, in process_timeouts
    self._timeouts[timeout_id]['handler']()
  File "C:\Python26\Lib\site-packages\pika\log.py", line 107, in debug_log
    return method(*args, **kwargs)
  File "C:\Python26\lib\site-packages\pika\heartbeat.py", line 115, in
send_and_check
    self.connection.send_frame(Heartbeat())
AttributeError: 'SelectConnection' object has no attribute 'send_frame'

I don't always get this error, but if I chage send_frame to _send_frame it
seems to work...

Any thoughts?


Many Thanks,

Yoav Glazner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110223/8b8b919f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: task_sender.py
Type: application/octet-stream
Size: 743 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110223/8b8b919f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: recv_demo.py
Type: application/octet-stream
Size: 864 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110223/8b8b919f/attachment-0001.obj>


More information about the rabbitmq-discuss mailing list