{ "id": "131721", "key": "TIMOB-17167", "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": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-19T19:46:36.000+0000", "created": "2014-06-13T20:14:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "http", "httpclient", "module_network", "parity", "qe-testadded", "timeout" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T21:40:45.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": "Save as {{app.js}}, run the following code with {{node app.js}} to start the server.\r\n\r\n*Expected behaviout*: the {{onerror}} callback is called.\r\n\r\n*What happens*: the {{onload}} callback is called.\r\n\r\n{code:javascript}\r\n(function () {\r\n\r\n if (typeof process !== 'undefined') {\r\n require('http').createServer(function (req, res) {\r\n setTimeout(function () {\r\n res.end('Done');\r\n }, 3e3);\r\n }).listen(3000);\r\n console.log('Server listening to port 3000');\r\n return;\r\n }\r\n\r\n var client = Ti.Network.createHTTPClient({\r\n onload: function (e) {\r\n alert('Argh!');\r\n },\r\n onerror: function (e) {\r\n alert('Timeout worked (probably)');\r\n },\r\n timeout: 100 // in milliseconds\r\n });\r\n\r\n client.open('GET', 'http://localhost:3000');\r\n\r\n client.send();\r\n\r\n})();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: HTTPClient does not support timeouts", "creator": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 3.3.0.RC", "closedSprints": [ { "id": 121, "state": "closed", "name": "2014 Sprint 12 SDK", "startDate": "2014-06-09T21:51:17.043Z", "endDate": "2014-06-21T00:00:00.000Z", "completeDate": "2014-06-23T16:52:29.621Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "308968", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "Oh, this is a parity issue too. On android it works flawlessly.", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-13T20:19:41.000+0000", "updated": "2014-06-13T20:19:41.000+0000" }, { "id": "309405", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "i'm also seeing timeouts not firing on HTTPClient calls on ios using 3.3.0.v20140617102513 with a more complex example.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-17T21:05:30.000+0000", "updated": "2014-06-17T21:05:30.000+0000" }, { "id": "309457", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~penrique] Update?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-17T23:25:07.000+0000", "updated": "2014-06-17T23:25:07.000+0000" }, { "id": "309681", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Probably an error in type conversion.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T19:59:21.000+0000", "updated": "2014-06-18T19:59:28.000+0000" }, { "id": "309682", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\n\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5815\r\n3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5816", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T20:08:13.000+0000", "updated": "2014-06-18T20:09:27.000+0000" }, { "id": "310032", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on: \r\nMac OSX 10.9.3 \r\nAppcelerator Studio, build: 3.3.0.201406171619 \r\nTitanium SDK, build: 3.3.0.v20140619130123\r\nTitanium CLI, build: 3.3.0-rc \r\nAlloy: 1.4.0-rc \r\niOS Device: iPhone 5S (7.1.1) \r\niOS Simulator: iPhone (7.1) \r\n\r\nTimeout is called and error alert is displayed. \r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T21:40:13.000+0000", "updated": "2014-06-19T21:40:13.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }