Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20042

iOS: TiNetworkHTTPClientProxy Memory Leak

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: Release 5.0.2
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:
    • Sprint:
      2015 Sprint 26 SDK

      Description

      When creating a Ti.Network.createHTTPClient, after the connection closes, a TiNetworkHTTPClientProxy does not get garbage collected. With repeated calls, they will start to build up to a very large #.

      1. Open Instruments
      2. Run this code

      var myurl = "http://www.google.com";	
       
      var xhrshowsite = Ti.Network.createHTTPClient();
       
      xhrshowsite.onload = function() {
      		xhrshowsite = null;
      };
      	
      xhrshowsite.onerror = function() {
      		xhrshowsite = null;
      };
       
      	
      	// open the client
      	xhrshowsite.open("GET",myurl);
      	xhrshowsite.setTimeout([5000]);
      	xhrshowsite.send();
      

      This did not affect pre-5.x SDK.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                ch Cameron
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20716
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code