{ "id": "173224", "key": "TIMOB-26918", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-03-26T18:13:33.000+0000", "created": "2019-03-22T08:53:35.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-26T18:13:33.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "The enterprise customer experiences the following issue:\r\nthe timeout value is not working properly for them. Meaning like, even if they are not getting response within 60000, the service call is not getting terminated. This is happening especially under low networks. The customer said that he don't see a benefit of giving timeout in the service call. They noticed the issue mainly in Android, but issue is there in ios as well.\r\n*Test case:*\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar url = \"http://www.google.com\";\r\n \r\nvar client = Ti.Network.createHTTPClient({\r\n \r\n onload : function(e) {\r\n \r\n Ti.API.info(\"Received text: \" + this.responseText);\r\n \r\n alert('success');\r\n \r\n },\r\n \r\n onerror : function(e) {\r\n \r\n Ti.API.debug(e.error);\r\n \r\n alert('error');\r\n \r\n },\r\n \r\n timeout : 60000\r\n \r\n});\r\n \r\n \r\n \r\nclient.open(\"GET\", url);\r\n \r\nclient.send();\r\n\r\n\r\n{code}\r\n\r\n\r\n\r\n Note:\r\n\r\n\r\n\r\n\r\nWe tested this issue on my end using the slow internet of the mobile with latest SDK 8.0.0.GA and it's working fine on this network( android 8 device). Steps that I have followed:\r\n1. Create a new project via studio\r\n2. Added the app.js fine on my new project\r\n3. Change the mobile network to slow. I have used a mobile internet which has hotspot facility.The mobile is kept to some distance from laptop and the other device which I use for app build. \r\n4. Run the application and its working fine.\r\n\r\nTest output:\r\n\r\n{code}\r\n[INFO] Received text: Google