Error when running testsuite against server: Case6_4_3 instance has no attribute 'producer'

#1

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/autobahn-0.4.2-py2.7.egg/autobahn/case/
case6_4_3.py", line 81, in onConnectionLost
      self.producer.stopProducing()
  exceptions.AttributeError: Case6_4_3 instance has no attribute
'producer'

OS: Mac OS 10.6.8
Python: 2.7.2

Has anyone run into this one? I'm guessing it's pilot error somehow,
but I'm no python expert. I'm just interested in testing a server I'm
working on.

0 Likes

#2

Never experienced this .. I just ran 0.4.2 fuzzing_client against
test_autobahn server on

/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/autobahn-0.4.2-py2.6.egg
Twisted-11.0.0-py2.6-macosx-10.3-fat.egg

tobias-obersteins-macbook-pro:websockets oberstet$ python -V
Python 2.6.4
tobias-obersteins-macbook-pro:websockets oberstet$ uname -a
Darwin tobias-obersteins-macbook-pro.local 9.8.0 Darwin Kernel Version
9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
i386

It runs cleanly .. so unfort. I can't reproduce what you see.

The producer attribute is set on

https://github.com/oberstet/Autobahn/blob/v0.4.2/lib/python/autobahn/case/case6_4_3.py#L62

which runs immediately after the initial WS handshake.

So in principle, the error could happen when the handshake already
fails and the TCP connection disappears before onOpen() fires.

Try insert a

print "X"*100

immediately before above L62 (do python setup.py install again) and
see if you get that printed during running the case.

···

2011/10/21 rlubke <ryan....@gmail.com>:

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/autobahn-0.4.2-py2.7.egg/autobahn/case/
case6_4_3.py", line 81, in onConnectionLost
self.producer.stopProducing()
exceptions.AttributeError: Case6_4_3 instance has no attribute
'producer'

OS: Mac OS 10.6.8
Python: 2.7.2

Has anyone run into this one? I'm guessing it's pilot error somehow,
but I'm no python expert. I'm just interested in testing a server I'm
working on.

0 Likes

#3

Thanks for the response. It was indeed pilot error.

-rl

···

On 10/21/11 1:29 PM, Tobias Oberstein wrote:

Never experienced this .. I just ran 0.4.2 fuzzing_client against
test_autobahn server on

/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/autobahn-0.4.2-py2.6.egg
Twisted-11.0.0-py2.6-macosx-10.3-fat.egg

tobias-obersteins-macbook-pro:websockets oberstet$ python -V
Python 2.6.4
tobias-obersteins-macbook-pro:websockets oberstet$ uname -a
Darwin tobias-obersteins-macbook-pro.local 9.8.0 Darwin Kernel Version
9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
i386

It runs cleanly .. so unfort. I can't reproduce what you see.

The producer attribute is set on

https://github.com/oberstet/Autobahn/blob/v0.4.2/lib/python/autobahn/case/case6_4_3.py#L62

which runs immediately after the initial WS handshake.

So in principle, the error could happen when the handshake already
fails and the TCP connection disappears before onOpen() fires.

Try insert a

print "X"*100

immediately before above L62 (do python setup.py install again) and
see if you get that printed during running the case.

2011/10/21 rlubke<ryan....@gmail.com>:

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/autobahn-0.4.2-py2.7.egg/autobahn/case/
case6_4_3.py", line 81, in onConnectionLost
            self.producer.stopProducing()
        exceptions.AttributeError: Case6_4_3 instance has no attribute
'producer'

OS: Mac OS 10.6.8
Python: 2.7.2

Has anyone run into this one? I'm guessing it's pilot error somehow,
but I'm no python expert. I'm just interested in testing a server I'm
working on.

0 Likes