[TIMOB-5927] Android: HttpClient calls too slow
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-12-04T23:58:15.000+0000 |
Affected Version/s | Release 1.7.2, Release 1.7.3, Release 1.8.0 |
Fix Version/s | 2012 Sprint 25, 2012 Sprint 25 Core |
Components | Android |
Labels | core, insight |
Reporter | Eduardo Gomez |
Assignee | Ingo Muschenetz |
Created | 2011-10-31T09:05:58.000+0000 |
Updated | 2017-03-29T20:21:40.000+0000 |
Description
Problem
HTTPs calls are too slow on android on small file (regardless GZIP use) The response time is up to 24 secs meanwhile iOS is 1 sec.Testing File is attached
testJson.jspTested on
LG Ally android 2.2 & iOS 4.3Associated HD ticket
APP-435854Attachments
File | Date | Size |
---|---|---|
testJson.jsp | 2011-10-31T09:05:58.000+0000 | 4918 |
I've tested with your snippet and am able to reproduce it I'm getting the following results: File on their server: On Mac: ~1000ms (very small file, gzip makes little difference.) On DroidX (wifi) ~11000ms I also tested by putting URL to my phone's browser, and it takes roughly the same amount of time to process. It would seem that the handshaking is most time-intensive when connecting to ssl server.
same on Titanium mobile sdk 1.8.2
... and android 3.1
I've tried this on both Android and iOS emulators. Using shak's test case, the first request without GZIP always takes a little longer (up to 1300ms for android and 850ms for iOS). However, all subsequent request take around 300ms on both platforms. When trying to GZIP, the request takes ~200ms on android and ~300ms on iOS. The difference isn't a 24x difference as mentioned in the bug. Going to mark this as cannot reproduce until we get a better test case.
Closing ticket as "Cannot Reproduce" with reference to the above comments.