[ https://issues.apache.org/jira/browse/THRIFT-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King III resolved THRIFT-1356. --------------------------------------- Resolution: Won't Do Assignee: James E. King III Fix Version/s: 1.0 As support for the older cocoa compiler and library have been removed (see THRIFT-4719), all of the issues in Jira related to that code have also been removed. For legacy cocoa support you can use version 0.12.0 - everyone is expected to move to swift if they want to use the next release of Thrift. > Memory leak and other issues in TSocketClient > --------------------------------------------- > > Key: THRIFT-1356 > URL: https://issues.apache.org/jira/browse/THRIFT-1356 > Project: Thrift > Issue Type: Bug > Components: Cocoa - Library > Affects Versions: 0.7 > Environment: iOS 4.3 > Reporter: Matthew Phillips > Assignee: James E. King III > Priority: Major > Fix For: 1.0 > > Attachments: TSocketClient.m > > > The socket setup code in TSocketClient seems to have been copied blindly from > Apple's docs. The two problems with that are: > (a) The example is for non-blocking event-based network IO, but Thrift uses > it in blocking mode and does not handle the delegate events it registers for. > This causes network operations to randomly hang. > (b) It retains the input and output streams, which already have a retain > count of 1, and which are then retained again by the superclass, causing a > memory leak. -- This message was sent by Atlassian JIRA (v7.6.3#76005)