{"action":"created","issue":{"url":"https://api.github.com/repos/django/channels/issues/527","repository_url":"https://api.github.com/repos/django/channels","labels_url":"https://api.github.com/repos/django/channels/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/django/channels/issues/527/comments","events_url":"https://api.github.com/repos/django/channels/issues/527/events","html_url":"https://github.com/django/channels/issues/527","id":207041296,"number":527,"title":"Websocket connection living for ~1:00 on Twisted==17.1.0","user":{"login":"bastbnl","id":5901491,"avatar_url":"https://avatars.githubusercontent.com/u/5901491?v=3","gravatar_id":"","url":"https://api.github.com/users/bastbnl","html_url":"https://github.com/bastbnl","followers_url":"https://api.github.com/users/bastbnl/followers","following_url":"https://api.github.com/users/bastbnl/following{/other_user}","gists_url":"https://api.github.com/users/bastbnl/gists{/gist_id}","starred_url":"https://api.github.com/users/bastbnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastbnl/subscriptions","organizations_url":"https://api.github.com/users/bastbnl/orgs","repos_url":"https://api.github.com/users/bastbnl/repos","events_url":"https://api.github.com/users/bastbnl/events{/privacy}","received_events_url":"https://api.github.com/users/bastbnl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-12T10:14:51Z","updated_at":"2017-02-12T10:20:35Z","closed_at":null,"body":"I updated the python packages on my application deployment yesterday and noticed a lot of websocket reconnections. The connections were living for ~1 minute after updating Twisted.\r\n\r\nHere's the deployment with the newer Twisted version.\r\n```\r\naadict==0.2.3\r\namqp==2.1.4\r\nanyjson==0.3.3\r\nappdirs==1.4.0\r\nasgi-redis==1.0.0\r\nasgiref==1.0.0\r\nasset==0.6.11\r\nattrs==16.3.0\r\nautobahn==0.17.1\r\nAutomat==0.5.0\r\nbackports.ssl-match-hostname==3.5.0.1\r\nBeautifulSoup==3.2.1\r\nbilliard==3.5.0.2\r\nbleach==1.5.0\r\nboto3==1.4.4\r\nbotocore==1.5.10\r\ncelery==4.0.2\r\ncertifi==2017.1.23\r\ncffi==1.9.1\r\nchannels==1.0.3\r\ncolorama==0.3.7\r\nconstantly==15.1.0\r\nconstruct==2.8.10\r\ncryptography==1.7.2\r\ndaphne==1.0.2\r\ndefusedxml==0.5.0\r\ndictdiffer==0.6.1\r\nDjango==1.10.5\r\ndjango-allauth==0.30.0\r\ndjango-appconf==1.0.2\r\ndjango-avatar==3.1.0\r\ndjango-braces==1.11.0\r\ndjango-compressor==2.1.1\r\ndjango-debug-toolbar==1.6\r\ndjango-ipware==1.1.6\r\ndjango-mailer==1.2.2\r\ndjango-oauth-toolkit==0.11.0\r\ndjango-reversion==2.0.8\r\ndjango-taggit==0.22.0\r\ndjango-tastypie==0.13.3\r\ndjango-templated-email==2.1\r\ndocutils==0.13.1\r\ndotmap==1.2.15\r\nelasticsearch==2.4.0\r\nenum34==1.1.6\r\nFabric==1.13.1\r\nfuncsigs==1.0.2\r\nfuture==0.16.0\r\nfutures==3.0.5\r\ngeoip2==2.4.2\r\ngevent==1.2.1\r\nglobre==0.1.5\r\ngreenlet==0.4.12\r\nhaystack==0.36\r\nhtml5lib==1.0b8\r\nicalendar==3.11.2\r\nidna==2.2\r\nincremental==16.10.1\r\nipaddr==2.1.11\r\nipaddress==1.0.18\r\nisodate==0.5.4\r\njmespath==0.9.1\r\nkombu==4.0.2\r\nlangdetect==1.0.7\r\nlockfile==0.12.2\r\nlxml==3.7.2\r\nmaxminddb==1.2.3\r\nmsgpack-python==0.4.8\r\nnatsort==5.0.2\r\nndg-httpsclient==0.4.2\r\noauthlib==2.0.1\r\nolefile==0.44\r\npackaging==16.8\r\nparamiko==2.1.1\r\npasswordmeter==0.1.8\r\npbr==1.10.0\r\npefile==2016.3.28\r\nPillow==4.0.0\r\npsycopg2==2.6.2\r\npy==1.4.32\r\npyasn1==0.2.2\r\npyasn1-modules==0.0.8\r\npycountry==17.1.8\r\npycparser==2.17\r\npycrypto==2.6.1\r\npyformance==0.3.4\r\npyOpenSSL==16.2.0\r\npyparsing==2.1.10\r\npytest==3.0.6\r\npython-dateutil==2.6.0\r\npython-mimeparse==1.6.0\r\npython-openid==2.2.5\r\npython-ptrace==0.9.1\r\npytz==2016.10\r\nrcssmin==1.0.6\r\nredis==2.10.5\r\nrequests==2.13.0\r\nrequests-oauthlib==0.7.0\r\nrjsmin==1.0.12\r\ns3transfer==0.1.10\r\nservice-identity==16.0.0\r\nsix==1.10.0\r\nsqlparse==0.2.2\r\nstop-words==2015.2.23.1\r\nTwisted==17.1.0\r\ntxaio==2.6.1\r\nUnidecode==0.4.20\r\nurllib3==1.20\r\nvine==1.1.3\r\nXlsxWriter==0.9.6\r\nzope.interface==4.3.3\r\n```\r\n\r\nI uninstalled just Twisted and reinstalled `Twisted==16.6.0` today, restarted runworker and noticed that the connections live a lot longer. That connection is now running > 20 minutes. \r\n\r\nI noticed this behavior on Chrome 55.0.2883.87 (with an update waiting). Will retry after updating Chrome."},"comment":{"url":"https://api.github.com/repos/django/channels/issues/comments/279208855","html_url":"https://github.com/django/channels/issues/527#issuecomment-279208855","issue_url":"https://api.github.com/repos/django/channels/issues/527","id":279208855,"user":{"login":"bastbnl","id":5901491,"avatar_url":"https://avatars.githubusercontent.com/u/5901491?v=3","gravatar_id":"","url":"https://api.github.com/users/bastbnl","html_url":"https://github.com/bastbnl","followers_url":"https://api.github.com/users/bastbnl/followers","following_url":"https://api.github.com/users/bastbnl/following{/other_user}","gists_url":"https://api.github.com/users/bastbnl/gists{/gist_id}","starred_url":"https://api.github.com/users/bastbnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastbnl/subscriptions","organizations_url":"https://api.github.com/users/bastbnl/orgs","repos_url":"https://api.github.com/users/bastbnl/repos","events_url":"https://api.github.com/users/bastbnl/events{/privacy}","received_events_url":"https://api.github.com/users/bastbnl/received_events","type":"User","site_admin":false},"created_at":"2017-02-12T10:20:35Z","updated_at":"2017-02-12T10:20:35Z","body":"No dice after updating to Chrome 56.0.2924.87 and `Twisted==17.1.0` \r\n```\r\n[2017/02/12 10:16:22] WebSocket HANDSHAKING /async/session/17ab2c53d3604f959ec7759c1474a00b/ [11.11.111.11:49330]\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, user=userM3NV12BU\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, group=o-1\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, group=s-17ab2c53d3604f959ec7759c1474a00b\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, group=s-5-17ab2c53d3604f959ec7759c1474a00b\r\n[2017/02/12 10:16:22] WebSocket CONNECT /async/session/17ab2c53d3604f959ec7759c1474a00b/ [11.11.111.11:49330]\r\n\r\n[2017/02/12 10:17:14] WebSocket DISCONNECT /async/session/17ab2c53d3604f959ec7759c1474a00b/ [11.11.111.11:49330]\r\n[consumer_disconnect]: k=brwnppr-session, v=17ab2c53d3604f959ec7759c1474a00b, group=s-17ab2c53d3604f959ec7759c1474a00b\r\n[consumer_disconnect]: k=brwnppr-session, v=17ab2c53d3604f959ec7759c1474a00b, group=s-5-17ab2c53d3604f959ec7759c1474a00b\r\n[consumer_disconnect]: k=brwnppr-session, v=17ab2c53d3604f959ec7759c1474a00b, group=o-1\r\n[consumer_disconnect]: key=brwnppr-userpk, reason=unhandled\r\n[consumer_disconnect]: key=brwnppr-o, reason=unhandled\r\n[2017/02/12 10:17:15] WebSocket HANDSHAKING /async/session/17ab2c53d3604f959ec7759c1474a00b/ [11.11.111.11:49694]\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, user=userM3NV12BU\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, group=o-1\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, group=s-17ab2c53d3604f959ec7759c1474a00b\r\n[session_consumer]: session=17ab2c53d3604f959ec7759c1474a00b, group=s-5-17ab2c53d3604f959ec7759c1474a00b\r\n[2017/02/12 10:17:15] WebSocket CONNECT /async/session/17ab2c53d3604f959ec7759c1474a00b/ [11.11.111.11:49694]\r\n```"}}
{"actor":{"display_login":"bastbnl"}}