{ "id": "63750", "key": "TIMOB-3118", "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:00:58.000+0000", "created": "2011-04-15T03:37:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.6.0", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:58.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}

Zipcar is reporting an issue where a 304 is returned from their\nserver subsequent requests will timeout. I've tested this and it\ndoes happen though not all the time. The customer has supplied a\nrunnable app to test here: http://developer.appcelerator.com/helpdesk/view/65941#c343981

{html}", "attachment": [ { "id": "18265", "filename": "app.js", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:37:21.000+0000", "size": 2426, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: 304 status causes timeouts", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "130106", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Triage, if too risky we'll have to consider 1.6.1 or 1.7.0.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:37:21.000+0000", "updated": "2011-04-15T03:37:21.000+0000" }, { "id": "130107", "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:37:21.000+0000", "updated": "2011-04-15T03:37:21.000+0000" }, { "id": "130108", "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:37:22.000+0000", "updated": "2011-04-15T03:37:22.000+0000" }, { "id": "130109", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Please verify with attached test app which if modified version\nof the test app provided in HD ticket. Basically, whenever you\nclick the button on the first tab, you should fire off both\nrequests. Even as the 304 response is received, you should not see\na timeout on further requests.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:37:22.000+0000", "updated": "2011-04-15T03:37:22.000+0000" }, { "id": "130110", "author": { "name": "zipcar(goss)", "key": "zipcar(goss)", "displayName": "Zipcar (Goss)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Excellent, I'll also test against our full suite of requests\nwith tomorrow's CI build. Thanks!

{html}", "updateAuthor": { "name": "zipcar(goss)", "key": "zipcar(goss)", "displayName": "Zipcar (Goss)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:37:22.000+0000", "updated": "2011-04-15T03:37:22.000+0000" }, { "id": "130111", "author": { "name": "zipcar(goss)", "key": "zipcar(goss)", "displayName": "Zipcar (Goss)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This has addressed the issue for me, thank you!

{html}", "updateAuthor": { "name": "zipcar(goss)", "key": "zipcar(goss)", "displayName": "Zipcar (Goss)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:37:22.000+0000", "updated": "2011-04-15T03:37:22.000+0000" }, { "id": "130112", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

nexus 2, G1, todays pull and Opies excellent test content

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