{ "id": "172491", "key": "DAEMON-266", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "20081", "description": "", "name": "Appc Daemon 2.0.0", "archived": false, "released": true, "releaseDate": "2018-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-13T20:46:31.000+0000", "created": "2018-10-25T13:22:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2019-03-13T20:46:31.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15049", "name": "appcd", "description": "Bootstrap, appcd CLI commands (start, stop, restart, exec, logcat, config, status)" } ], "description": "There is an issue where non-subscription based responses are not being terminated when finished. The problem stems from the {{WebSocketSession}} not properly sending a {{fin: true}} on the last message and the client not handling the last message in the request.", "attachment": [], "flagged": false, "summary": "appcd exec doesn't properly handle streamed responses", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "442938", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "PR: https://github.com/appcelerator/appc-daemon/pull/341\r\n\r\nTo test, run:\r\n\r\n{{appcd exec /appcd/status/system/memory}} and observe 1 response and exit.\r\n\r\n{{appcd exec /appcd/status/system/memory --subscribe}} and observer several responses and no exit. Ctrl-C to quit.\r\n\r\nTo fully test this, you should also test a plugin with a service that returns a non-pubsub streamed response (i.e. a plugin that spawns something that outputs a chunk of output). I was testing a service that subprocessed another Node script that wrote a bunch of stuff to stdout, which in turn was written to the response stream.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2018-10-25T13:40:14.000+0000", "updated": "2018-10-25T13:40:14.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }