{ "id": "110109", "key": "TIMOB-12846", "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": [ { "id": "15397", "description": "2013 Soprint 07 API", "name": "2013 Sprint 07 API", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-26T22:20:31.000+0000", "created": "2013-02-25T07:42:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "mobilesdk", "titanium" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T18:03:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Find the sample code below to reproduce the same.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#ffffff'\r\n});\r\nvar url = 'https://www.google.com';\r\nif (Ti.Network.online) {\r\n var xhr = Ti.Network.createHTTPClient({\r\n timeout : 0,\r\n validatesSecureCertificate : false\r\n });\r\n xhr.onload = function(e) {// Onload\r\n Ti.API.info('onload:' + this.status + xhr.status + xhr.getStatusText() + JSON.stringify(e));\r\n };\r\n xhr.onerror = function(e) {\r\n alert('e.error:' + e.error + ':status:' + xhr.status + xhr.statusText);\r\n Ti.API.info(JSON.stringify(e));\r\n };\r\n xhr.open('GET', url);\r\n xhr.send();\r\n}\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Timeout property not working for Network calls", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, Android OS.", "comment": { "comments": [ { "id": "242743", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "timeout=0 is an invalid value. 0 means no timeout.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T20:32:00.000+0000", "updated": "2013-03-18T20:32:00.000+0000" }, { "id": "243902", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Ingo, you understood well and yes, i tried various different values and none of them worked.\n\nI am reopening this ticket.", "updateAuthor": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-25T12:02:41.000+0000", "updated": "2013-03-25T12:02:41.000+0000" }, { "id": "243904", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I tried various different values and none of them worked.\r\n\r\n\"0\" is just an example value.", "updateAuthor": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-25T12:03:39.000+0000", "updated": "2013-03-25T12:03:39.000+0000" }, { "id": "244188", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I just tried hitting http://www.google.com:81 with a timeout property > 0 (I tried 50, 100, 150) (Port hidden behind firewall. Expect timeout). \nI always got the onError callback. Agreed that the message right now is not descriptive which we will fix. But debugging showed that we did get a ConnectionTimeout exception.\n\nTried this on S3 running 4.1.1 and S2 running 2.3.6.\n\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T22:20:19.000+0000", "updated": "2013-03-26T22:20:19.000+0000" }, { "id": "247024", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified With - \r\nSDK - 3.1.0.v20130409124549\r\nAppcelerator Studio - 3.1.0.201304091724\r\nOS - Montain Lion (v10.8)\r\nVerified the last comment made by Vishal and got the same. Hence closing this issue.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T07:09:41.000+0000", "updated": "2013-04-11T07:09:41.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }