Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.16
-
None
-
python-qpid-0.16-1.fc16.noarch
qpid-tools-0.16-1.fc16.1.noarch
qpid-cpp-server-0.16-1.fc16.1.i686
Description
[jwulf@radhe unsettled]$ python unsettled.py
Traceback (most recent call last):
File "unsettled.py", line 12, in <module>
msgs=rx.unsettled()
File "<string>", line 6, in unsettled
File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 986, in unsettled
return len([m for m in self.acked if m._receiver is self])
AttributeError: 'Receiver' object has no attribute 'acked'
Reproducer:
import sys
from qpid.messaging import *
connection=Connection("localhost:5672")
connection.open()
try:
ssn=connection.session()
rx=ssn.receiver("test;
")
tx=ssn.sender("test")
tx.send("hello")
rx.fetch()
msgs=rx.unsettled()
print msgs
ssn.acknowledge()
finally:
connection.close()