{"action":"created","issue":{"url":"https://api.github.com/repos/IRkernel/IRkernel/issues/266","repository_url":"https://api.github.com/repos/IRkernel/IRkernel","labels_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/266/comments","events_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/266/events","html_url":"https://github.com/IRkernel/IRkernel/pull/266","id":135985318,"number":266,"title":"Fix hang after an aborted message","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-02-24T07:46:16Z","updated_at":"2016-02-25T14:38:33Z","closed_at":"2016-02-25T14:38:26Z","pull_request":{"url":"https://api.github.com/repos/IRkernel/IRkernel/pulls/266","html_url":"https://github.com/IRkernel/IRkernel/pull/266","diff_url":"https://github.com/IRkernel/IRkernel/pull/266.diff","patch_url":"https://github.com/IRkernel/IRkernel/pull/266.patch"},"body":"This fixes two bugs introduced by 61f0ca492e7a98c57d3c31b2020ad16642fe00e4:\r\n\r\n* The kernel would hang in some circumstances:  It seems that zmq can't handle\r\n  the case where the results of the first poll haven't been handled and and\r\n  another poll is already started and the handling of the first poll is then\r\n  resumed. In this case the main loop thought it found a control message and\r\n  started handling it, but the function never returned from the\r\n  `zmq.recv.multipart`. The workaround here was reordering the handle_xxx flow\r\n  to let shell messages be handled last.\r\n\r\n* The reply message had an incorrect type, because I forgot an unlist()\r\n\r\nThis also introduces a debug print function which does nothing and has to be activated to print to stderr...\r\n\r\nCloses: https://github.com/IRkernel/IRkernel/issues/265"},"comment":{"url":"https://api.github.com/repos/IRkernel/IRkernel/issues/comments/188813427","html_url":"https://github.com/IRkernel/IRkernel/pull/266#issuecomment-188813427","issue_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/266","id":188813427,"user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T14:38:33Z","updated_at":"2016-02-25T14:38:33Z","body":"Thanks :-)"}}