{"action":"created","issue":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/263","repository_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO","labels_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/263/comments","events_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/263/events","html_url":"https://github.com/miguelgrinberg/Flask-SocketIO/issues/263","id":154621474,"number":263,"title":"Session disconnected causes the thread handling eventlet + redis packets/events ","user":{"login":"cmabastar","id":4414453,"avatar_url":"https://avatars.githubusercontent.com/u/4414453?v=3","gravatar_id":"","url":"https://api.github.com/users/cmabastar","html_url":"https://github.com/cmabastar","followers_url":"https://api.github.com/users/cmabastar/followers","following_url":"https://api.github.com/users/cmabastar/following{/other_user}","gists_url":"https://api.github.com/users/cmabastar/gists{/gist_id}","starred_url":"https://api.github.com/users/cmabastar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmabastar/subscriptions","organizations_url":"https://api.github.com/users/cmabastar/orgs","repos_url":"https://api.github.com/users/cmabastar/repos","events_url":"https://api.github.com/users/cmabastar/events{/privacy}","received_events_url":"https://api.github.com/users/cmabastar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"miguelgrinberg","id":2715854,"avatar_url":"https://avatars.githubusercontent.com/u/2715854?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgrinberg","html_url":"https://github.com/miguelgrinberg","followers_url":"https://api.github.com/users/miguelgrinberg/followers","following_url":"https://api.github.com/users/miguelgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/miguelgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgrinberg/subscriptions","organizations_url":"https://api.github.com/users/miguelgrinberg/orgs","repos_url":"https://api.github.com/users/miguelgrinberg/repos","events_url":"https://api.github.com/users/miguelgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgrinberg/received_events","type":"User","site_admin":false},"milestone":null,"comments":28,"created_at":"2016-05-13T02:32:09Z","updated_at":"2016-06-17T06:14:34Z","closed_at":null,"body":"Hi Miguel,\r\n\r\nI'm encountering with eventlet + redis, after receiving the following error, it won't be able to do an \"emit\"/\"send\" events to the future clients anymore\r\n\r\n```sh\r\nException in thread Thread-1:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/threading.py\", line 914, in _bootstrap_inner\r\n    self.run()\r\n  File \"/usr/local/lib/python3.5/threading.py\", line 862, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"/home/vf/env/lib/python3.5/site-packages/socketio/pubsub_manager.py\", line 143, in _thread\r\n    self._handle_emit(data)\r\n  File \"/home/vf/env/lib/python3.5/site-packages/socketio/pubsub_manager.py\", line 101, in _handle_emit\r\n    callback=callback)\r\n  File \"/home/vf/env/lib/python3.5/site-packages/socketio/base_manager.py\", line 103, in emit\r\n    self.server._emit_internal(sid, event, data, namespace, id)\r\n  File \"/home/vf/env/lib/python3.5/site-packages/socketio/server.py\", line 322, in _emit_internal\r\n    binary=binary))\r\n  File \"/home/vf/env/lib/python3.5/site-packages/socketio/server.py\", line 333, in _send_packet\r\n    self.eio.send(sid, encoded_packet, binary=False)\r\n  File \"/home/vf/env/lib/python3.5/site-packages/engineio/server.py\", line 158, in send\r\n    self._get_socket(sid).send(packet.Packet(packet.MESSAGE, data=data,\r\n  File \"/home/vf/env/lib/python3.5/site-packages/engineio/server.py\", line 344, in _get_socket\r\n    raise KeyError('Session is disconnected')\r\nKeyError: 'Session is disconnected'\r\n```"},"comment":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/comments/226688840","html_url":"https://github.com/miguelgrinberg/Flask-SocketIO/issues/263#issuecomment-226688840","issue_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/263","id":226688840,"user":{"login":"gordol","id":524853,"avatar_url":"https://avatars.githubusercontent.com/u/524853?v=3","gravatar_id":"","url":"https://api.github.com/users/gordol","html_url":"https://github.com/gordol","followers_url":"https://api.github.com/users/gordol/followers","following_url":"https://api.github.com/users/gordol/following{/other_user}","gists_url":"https://api.github.com/users/gordol/gists{/gist_id}","starred_url":"https://api.github.com/users/gordol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordol/subscriptions","organizations_url":"https://api.github.com/users/gordol/orgs","repos_url":"https://api.github.com/users/gordol/repos","events_url":"https://api.github.com/users/gordol/events{/privacy}","received_events_url":"https://api.github.com/users/gordol/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T06:14:34Z","updated_at":"2016-06-17T06:14:34Z","body":"Negative.\r\n\r\n```\r\nfgrep -R 2d9932d9ade649b3be37f081947ae355 /var/log/supervisor/\r\n/var/log/supervisor/SocketIO_1-stdout---supervisor-Yk9HRf.log:KeyError: '2d9932d9ade649b3be37f081947ae355'\r\n```\r\n\r\n```\r\nfgrep -R 63cdc81644be4e8191782b88e8602354 /var/log/supervisor/\r\n/var/log/supervisor/SocketIO_1-stdout---supervisor-Yk9HRf.log:KeyError: '63cdc81644be4e8191782b88e8602354'\r\n```\r\n\r\nAll of my requests are going to socket-01, as expected."}}
{"actor":{"display_login":"gordol"}}