[AC-796] HTTPClient ondatastream returns negative progress values
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-07-17T06:45:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Reuben Turk |
Assignee | Shuo Liang |
Created | 2014-07-16T01:56:41.000+0000 |
Updated | 2016-03-08T07:37:04.000+0000 |
Description
On android when using Titanium.Network.HTTPClient to GET json data and other files from a website, the ondatastream callback sometimes returns values less than zero.
When I get multiple data streams for the one request they get progressively lower values.
For example, these are the progress values from a single GET request for some json:
[DEBUG] : -4096
[DEBUG] : -7734
[DEBUG] : -11830
[DEBUG] : -15926
[DEBUG] : -20022
[DEBUG] : -22070
[DEBUG] : -23478
[DEBUG] : -27574
[DEBUG] : -31670
[DEBUG] : -34950
Possibly related: TIMOB-14613
It doesn't matter to me whether these are duplicate or not but they seem like different issues as the different platforms consistently give different errors: iOS gives values above 1 and android gives values below 0. Although they affect the same thing the symptoms are quite different.