Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1019] HTTPClient crashes app with substantial downloads

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-07T22:32:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelscore
ReporterBrandon Reeves
AssigneeIngo Muschenetz
Created2011-04-15T02:41:37.000+0000
Updated2017-07-07T22:33:07.000+0000

Description

I noticed that HTTPClients crash when downloading files larger than the current free RAM size. This is obviously attributed to the fact that Titanium writes the file downloading to a variable before the data gets written to disk (since the disk writing must be handled onload). A separate method for directly downloading to disk in order to more efficiently handle larger files would be very useful.

Comments

  1. Junaid Younus 2012-08-20

    No test case, ticket marked as invalid.
  2. Neeraj Gupta 2012-08-20

    We should be able to reproduce this issue with a simple test case.

JSON Source