Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      OSX 10.11

      Description

      HTTPClient iOS fails to deallocate. running the sample app below and using instruments, TiNetworkHTTPClientProxy never goes down, even after status is DONE, slowly eating up memory

      See this behaviour in 5.2.0 RC(5.2.0.v20160216202526) as well as 5.1.2

      var win1 = Titanium.UI.createWindow({  
          backgroundColor:'#fff'
      });
       
      var label1 = Titanium.UI.createLabel({
      	color:'#999',
      	text:'Ping Test',
      	font:{fontSize:20,fontFamily:'Helvetica Neue'},
      	textAlign:'center',
      });
       
      win1.add(label1);
       
      function ping() {
       
        var pingTimeStart = (new Date).getTime();
        var pingTimeEnd = 0;
        var url = 'http://www.google.com/';
        var pingTest = Ti.Network.createHTTPClient();
       
       
        pingTest.onload = function(e) {
          pingTimeEnd = (new Date).getTime();
          Ti.API.warn('PING COMPLETE : '+(pingTimeEnd-pingTimeStart));
        };
        pingTest.onerror = function(e) {
          pingTimeEnd = (new Date).getTime();
          Ti.API.error('PING FAIL : ' + (pingTimeEnd - pingTimeStart));
        };
       
        pingTest.open("HEAD", url);
        pingTest.timeout = 2000;
        pingTest.send();
      }
       
       
      var pingAway = setInterval(function() {
          ping();
        }, 10000);
       
      win1.open();
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                cliff_stander Mike Stancliffe
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration