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


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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to