{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip-android/issues/121","repository_url":"https://api.github.com/repos/zulip/zulip-android","labels_url":"https://api.github.com/repos/zulip/zulip-android/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip-android/issues/121/comments","events_url":"https://api.github.com/repos/zulip/zulip-android/issues/121/events","html_url":"https://github.com/zulip/zulip-android/issues/121","id":170803001,"number":121,"title":"Disconnected handler for queue ","user":{"login":"kunall17","id":12700799,"avatar_url":"https://avatars.githubusercontent.com/u/12700799?v=3","gravatar_id":"","url":"https://api.github.com/users/kunall17","html_url":"https://github.com/kunall17","followers_url":"https://api.github.com/users/kunall17/followers","following_url":"https://api.github.com/users/kunall17/following{/other_user}","gists_url":"https://api.github.com/users/kunall17/gists{/gist_id}","starred_url":"https://api.github.com/users/kunall17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunall17/subscriptions","organizations_url":"https://api.github.com/users/kunall17/orgs","repos_url":"https://api.github.com/users/kunall17/repos","events_url":"https://api.github.com/users/kunall17/events{/privacy}","received_events_url":"https://api.github.com/users/kunall17/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-12T05:45:01Z","updated_at":"2016-08-12T06:19:52Z","closed_at":null,"body":"I'm not sure if this is an error in the server side or the android client and no other mobiles/web was connected to the server at this time!\r\nI encountered this after exiting App 2-3 times and starting again then i start recieving these logs\r\n\r\n**Disconnected handler for queue 1470980116:0** \r\n\r\nLog of the server - \r\n```\r\n2016-08-12 01:38:44,947 INFO     127.0.0.1       GET     200  30ms (lp: 12.3s) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:46,761 INFO     127.0.0.1       GET     200  15ms (lp: 791ms) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:46,763 INFO     127.0.0.1       GET     200  14ms /api/v1/event                                                                                                                s [1470980116:0/0] [was connected] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:47,834 INFO     127.0.0.1       GET     200  22ms (lp: 40ms) /a                                                                                                                pi/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:47,837 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n2016-08-12 01:38:48,586 INFO     127.0.0.1       GET     200  20ms (lp: 767ms) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:49,664 INFO     127.0.0.1       GET     200  21ms (lp: 434ms) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:49,667 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n2016-08-12 01:38:50,695 INFO     127.0.0.1       GET     200  23ms (lp: 1.0s) /a                                                                                                                pi/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:50,697 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n2016-08-12 01:38:51,729 INFO     127.0.0.1       GET     200  13ms (lp: 1.0s) /a                                                                                                                pi/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:51,732 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n2016-08-12 01:38:52,392 INFO     127.0.0.1       GET     200  12ms (lp: 671ms) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:52,396 INFO     127.0.0.1       POST    200  65ms (db: 4ms/2q)                                                                                                                 /api/v1/messages/flags [add read/37] actually 0 (iago@zulip.com via ZulipAndroid                                                                                                                )\r\n2016-08-12 01:38:53,436 INFO     127.0.0.1       GET     200   7ms (lp: 669ms) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:53,438 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n2016-08-12 01:38:54,176 INFO     127.0.0.1       GET     200  12ms (lp: 747ms) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:54,413 INFO     127.0.0.1       POST    200  71ms (db: 3ms/2q)                                                                                                                 /api/v1/messages/flags [add read/10] actually 0 (iago@zulip.com via ZulipAndroid                                                                                                                )\r\n2016-08-12 01:38:54,465 INFO     127.0.0.1       GET     200  11ms /api/v1/event                                                                                                                s [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:55,499 INFO     127.0.0.1       GET     200  17ms (lp: 268ms) /                                                                                                                api/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:55,503 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n2016-08-12 01:38:56,543 INFO     127.0.0.1       GET     200  13ms (lp: 1.1s) /a                                                                                                                pi/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:56,546 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n2016-08-12 01:38:57,574 INFO     127.0.0.1       GET     200  15ms (lp: 1.0s) /a                                                                                                                pi/v1/events [1470980116:0/1] (iago@zulip.com via ZulipAndroid)\r\n2016-08-12 01:38:57,580 INFO     Disconnected handler for queue 1470980116:0 (ia                                                                                                                go@zulip.com/ZulipAndroid)\r\n\r\n```\r\n\r\n@timabbott is this normal, or if error how to address this issue? "},"comment":{"url":"https://api.github.com/repos/zulip/zulip-android/issues/comments/239369861","html_url":"https://github.com/zulip/zulip-android/issues/121#issuecomment-239369861","issue_url":"https://api.github.com/repos/zulip/zulip-android/issues/121","id":239369861,"user":{"login":"timabbott","id":2746074,"avatar_url":"https://avatars.githubusercontent.com/u/2746074?v=3","gravatar_id":"","url":"https://api.github.com/users/timabbott","html_url":"https://github.com/timabbott","followers_url":"https://api.github.com/users/timabbott/followers","following_url":"https://api.github.com/users/timabbott/following{/other_user}","gists_url":"https://api.github.com/users/timabbott/gists{/gist_id}","starred_url":"https://api.github.com/users/timabbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timabbott/subscriptions","organizations_url":"https://api.github.com/users/timabbott/orgs","repos_url":"https://api.github.com/users/timabbott/repos","events_url":"https://api.github.com/users/timabbott/events{/privacy}","received_events_url":"https://api.github.com/users/timabbott/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T06:19:52Z","updated_at":"2016-08-12T06:19:52Z","body":"No, registering another queue would make the problem much worse.\r\n\r\nThe bug here is that the client is incorrectly failing the pass the correct `last_event_id` when connecting to the server -- we should review the logic for how the client updates `last_event_id` and make sure that it always increases it to the maximum of the event IDs it has received from the server.  My guess is we have a code path inside the event ID handler that returns early."}}
{"actor":{"display_login":"timabbott"}}