Tor tunnel has no connection object until connect is called

Bug #921914 reported by aj00200
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anonplus
Fix Committed
Undecided
aj00200

Bug Description

We need to call the connect methods on our tunnels before using them to send data so that they have a connection object.

The traceback is as follows:

Exception happened during processing of request from ('127.0.0.1', 53513)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 283, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 309, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "/home/aj00200/anonplus/aj00200/src/uis/web/manager.py", line 17, in do_GET
    broadcast('web_ui_request', self.path, self)
  File "/home/aj00200/anonplus/aj00200/src/libs/events.py", line 18, in broadcast
    getattr(handler, event_type)(*args, **kwargs)
  File "/home/aj00200/anonplus/aj00200/src/uis/web/handler.py", line 76, in web_ui_request
    post_contents)))
  File "/home/aj00200/anonplus/aj00200/src/libs/friends.py", line 155, in send_message
    self.send(pack)
  File "/home/aj00200/anonplus/aj00200/src/libs/friends.py", line 141, in send
    self.wconnection.send(message)
  File "/home/aj00200/anonplus/aj00200/src/tunnels/tor.py", line 28, in send
    self.connection.send(message)
AttributeError: 'Tunnel' object has no attribute 'connection'

Tags: tunnels

Related branches

aj00200 (aj00200)
Changed in anonplus:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.