Error for send big message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txamqp (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Run simple client for send big message:
Output:
$ ./tx-err_
Connected to broker.
Authenticated. Ready to receive messages
Message max length: 131072
Sending message: len=262144 prop: {}
Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "./tx-err_
yield chan.channel_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
raise Closed(self.reason)
txamqp.
Client code: file tx-err_big_semd.py
from twisted.
from twisted.internet import reactor
from twisted.
from twisted.python import log
from txamqp.protocol import AMQClient
from txamqp.client import TwistedDelegate
from txamqp.content import Content
import txamqp.spec
TEST_QUEUE = 'test.queue'
@inlineCallbacks
def gotConnection(conn, username, password):
print "Connected to broker."
yield conn.authentica
print "Authenticated. Ready to receive messages"
chan = yield conn.channel(1)
yield chan.channel_open()
yield chan.queue_declare(
queue=
print 'Message max length:', conn.MAX_LENGTH
msg = Content(' ' * conn.MAX_LENGTH * 2)
chan.
print "Sending message: len=%d prop: %s" % (len(msg.body), msg.properties)
yield
yield chan.channel_
chan0 = yield conn.channel(0)
yield chan0.connectio
reactor.stop()
if __name__ == "__main__":
host = 'localhost'
port = 5672
vhost = '/'
username = 'guest'
password = 'guest'
SPEC = 'https:/
spec = txamqp.
delegate = TwistedDelegate()
d = ClientCreator(
d.addCallba
def whoops(err):
if reactor.running:
d.addErrbac
reactor.run()
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-txamqp 0.6.1-0ubuntu2
ProcVersionSign
Uname: Linux 3.13.0-32-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Aug 11 15:29:55 2014
InstallationDate: Installed on 2011-12-10 (975 days ago)
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitec
SourcePackage: txamqp
UpgradeStatus: Upgraded to trusty on 2014-04-23 (110 days ago)
Maybe related https:/ /bugs.launchpad .net/txamqp/ +bug/1023327