{ "id": "63910", "key": "TIMOB-3278", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-17T16:35:57.000+0000", "created": "2011-04-15T03:41:11.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "ios", "release-1.7.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "jacobrelkin", "key": "jacobrelkin", "displayName": "Jacob Relkin", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-17T16:35:57.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Client code needs to be able to specify timeouts for HTTP\nRequests.
Doesn't this work for you?
\n\n\nvar xhr = Titanium.Network.createHTTPClient();\nxhr.timeout = 1000000;\n\nxhr.onerror = function(e){\n Ti.API.info('IN ERROR ' + e.error);\n};\nxhr.onload = function(){\n\n Ti.API.info(this.responseText);\n};\nxhr.open('POST','http://some.url');\n\nxhr.send();
\n
\nSeems to be ok for me (1.7.0 and has been for a long time since\n1.4ish)
\nGiven that it needs to be set before open() and send()
\nNote use of xhr.timeout = xxxx rather than\nxhr.setTimout(xxxx)
@kosso,
\nDoes this work on iOS?