From a90f88b4bbd0abb4db451956b9f00440e6a961a8 Mon Sep 17 00:00:00 2001 From: cfillion Date: Wed, 15 Apr 2015 00:15:59 -0400 Subject: [PATCH] fix a typo in websocket/protocol.py (s/taxio/txaio) Most test cases were raising the following exception when running `wstest -m fuzzingclient`: ``` An exception was raised from application code while processing a reactor selectable Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 88, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext return func(*args,**kw) --- --- File "/usr/local/lib/python2.7/site-packages/twisted/internet/kqreactor.py", line 277, in _doWriteOrRead why = selectable.doRead() File "/usr/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 209, in doRead return self._dataReceived(data) File "/usr/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 215, in _dataReceived rval = self.protocol.dataReceived(data) File "/usr/local/lib/python2.7/site-packages/autobahn/twisted/websocket.py", line 101, in dataReceived self._dataReceived(data) File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1299, in _dataReceived self.consumeData() File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1314, in consumeData while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED: File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1466, in processData return self.processDataHybi() File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1777, in processDataHybi fr = self.onFrameEnd() File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1875, in onFrameEnd self.processControlFrame() File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1931, in processControlFrame if self.onCloseFrame(code, reasonRaw): File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 842, in onCloseFrame call = taxio.call_later( exceptions.NameError: global name 'taxio' is not defined ``` --- autobahn/websocket/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autobahn/websocket/protocol.py b/autobahn/websocket/protocol.py index 9b092a51e..3bebd9b24 100755 --- a/autobahn/websocket/protocol.py +++ b/autobahn/websocket/protocol.py @@ -839,7 +839,7 @@ def onCloseFrame(self, code, reasonRaw): # When we are a client, the server should drop the TCP # If that doesn't happen, we do. And that will set wasClean = False. if self.serverConnectionDropTimeout > 0: - call = taxio.call_later( + call = txaio.call_later( self.serverConnectionDropTimeout, self.onServerConnectionDropTimeout, )