{ "id": "63776", "key": "TIMOB-3144", "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": "11243", "name": "Release 1.6.0 M10", "archived": true, "released": true, "releaseDate": "2011-02-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:01:02.000+0000", "created": "2011-04-15T03:38:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "httpclient", "regression", "release-1.6.0", "reported-1.6.0", "timeout" ], "versions": [], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2011-04-17T02:01:02.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": "{html}

Now that the http client is shared, modify the http client to\nallow for a unique timeout per instance.

{html}", "attachment": [ { "id": "18267", "filename": "app.js", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:38:00.000+0000", "size": 2424, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: allow timeout value to be set per http client instance", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "130152", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

(from [ccc3a3073f757c32053e9dd8eb596b58a30001ca])\n[#3144 state:fixed-in-qa] [#3118\nstate:fixed-in-qa] modify http client to release stale\nconnections

\n

sometimes http client does not correctly release stale\nconnections when exceptions are thrown or certain responses are\nreceived (304) in this case. upon receiving exception, manually\nrelease any idle or expired connections. also modified http client\nto respect unique timeout values per TiHTTPClient instance rather\nthan setting the timeout value on the shared http client\ninstance.
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/ccc3a3073f75...

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:38:00.000+0000", "updated": "2011-04-15T03:38:00.000+0000" }, { "id": "130153", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

(from [b9a4f2cec1823d7d6842baf7f59a1e4cf81458ad])\n[#3144 state:fixed-in-qa] [#3118\nstate:fixed-in-qa] modify http client to release stale\nconnections

\n

sometimes http client does not correctly release stale\nconnections when exceptions are thrown or certain responses are\nreceived (304) in this case. upon receiving exception, manually\nrelease any idle or expired connections. also modified http client\nto respect unique timeout values per TiHTTPClient instance rather\nthan setting the timeout value on the shared http client\ninstance.
\n(cherry picked from commit\nccc3a3073f757c32053e9dd8eb596b58a30001ca) \nhttps://github.com/appcelerator/titanium_mobile/commit/b9a4f2cec182...

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:38:00.000+0000", "updated": "2011-04-15T03:38:00.000+0000" }, { "id": "130154", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Please verify with attached test app. Basically, whenever you\nclick the button on the first tab, you should fire off two\nrequests. One request has a 500 millisecond timeout which should\nfail and the other has a 40 second timeout which should work\nwithout issue.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:38:00.000+0000", "updated": "2011-04-15T03:38:00.000+0000" }, { "id": "130155", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

GA - 1.6 G! and 2.3.1 Nexus s

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:38:01.000+0000", "updated": "2011-04-15T03:38:01.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }