Opened 11 years ago

Closed 11 years ago

#2641 defect closed duplicate (duplicate)

Circular reference in tcp.BaseClient

Reported by: mircea Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description

There is a circular reference created in the doConnect method of twisted.internet.tcp.BaseClient class. If the client fails to connect and exits the method calling failIfNotConnected, the references to self.doWrite and self.doRead (which were replaced with self.doConnect) are not deleted and this causes a circular reference.

I've attached a patch that fixes this by deleting the self.doWrite and self.doRead references on every doConnect method exit point.

Change History (2)

comment:1 Changed 11 years ago by therve

Resolution: duplicate
Status: newclosed

comment:2 Changed 7 years ago by <automation>

Owner: Glyph deleted
Note: See TracTickets for help on using tickets.