{"action":"opened","issue":{"url":"https://api.github.com/repos/django/channels/issues/391","repository_url":"https://api.github.com/repos/django/channels","labels_url":"https://api.github.com/repos/django/channels/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/django/channels/issues/391/comments","events_url":"https://api.github.com/repos/django/channels/issues/391/events","html_url":"https://github.com/django/channels/issues/391","id":181922282,"number":391,"title":"Workers interfering with eachother","user":{"login":"deshraj","id":2945708,"avatar_url":"https://avatars.githubusercontent.com/u/2945708?v=3","gravatar_id":"","url":"https://api.github.com/users/deshraj","html_url":"https://github.com/deshraj","followers_url":"https://api.github.com/users/deshraj/followers","following_url":"https://api.github.com/users/deshraj/following{/other_user}","gists_url":"https://api.github.com/users/deshraj/gists{/gist_id}","starred_url":"https://api.github.com/users/deshraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deshraj/subscriptions","organizations_url":"https://api.github.com/users/deshraj/orgs","repos_url":"https://api.github.com/users/deshraj/repos","events_url":"https://api.github.com/users/deshraj/events{/privacy}","received_events_url":"https://api.github.com/users/deshraj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-10T00:30:36Z","updated_at":"2016-10-10T00:30:36Z","closed_at":null,"body":"I am running two Django projects on my staging server. Both of them are using channels. I am running two daphne servers each for one. When I start the workers using `runworker` of both the projects, then I can see that the worker of one project seems to consume the requests of the other project and vice versa and causing problems. \r\n\r\nThe two daphne servers are running at different ports 8004 and 9000. \r\nOS: Ubuntu 14.04\r\nVersions: \r\n`asgi-redis==0.14.1`\r\n`asgiref==0.14.0`\r\n`autobahn==0.16.0`\r\n`backports.ssl-match-hostname==3.5.0.1`\r\n`channels==0.17.2`\r\n`daphne==0.15.0`\r\n`Django==1.10.1`\r\n`pika==0.10.0`\r\n`protobuf==3.0.0`\r\n`redis==2.10.5`\r\n`six==1.10.0`\r\n`Twisted==16.4.1`\r\n`txaio==2.5.1`\r\n`uWSGI==2.0.13.1`\r\n`websocket-client==0.37.0`\r\n`zope.interface==4.3.2`\r\n\r\n\r\nAlso, I am using nginx as webserver. \r\nThe nginx configuration for both the projects are as follows: \r\n\r\n\r\n**Project 1**\r\n\r\n    \r\n    upstream gradcam {\r\n        server 127.0.0.1:8001;\r\n        }\r\n    \r\n    server {\r\n        listen      80;\r\n        charset     utf-8;\r\n        client_max_body_size 75M;   # adjust to taste\r\n\r\n        location /media  {\r\n            alias /path/to/media;  # your Django project's media files - amend as required\r\n        }\r\n\r\n        location /static {\r\n            alias /path/to/static; # your Django project's static files - amend as required\r\n        }\r\n        location /chat {\r\n            proxy_pass          http://127.0.0.1:9000;\r\n            proxy_http_version  1.1;\r\n            proxy_set_header    Upgrade $http_upgrade;\r\n            proxy_set_header    Connection \"Upgrade\";\r\n        }\r\n\r\n        location / {\r\n            uwsgi_pass  gradcam;\r\n            include     /path/to/uwsgi_params; # the uwsgi_params file you installed\r\n            proxy_http_version  1.1;\r\n            proxy_set_header    Upgrade $http_upgrade;\r\n            proxy_set_header    Connection \"Upgrade\";\r\n        }\r\n    }\r\n\r\n**Project 2**\r\n\r\n\r\n    upstream svqa {\r\n        server 127.0.0.1:8003; # for a web port socket (we'll use this first)\r\n    }\r\n    \r\n    server {\r\n        listen      80;\r\n        server_name abc.xyz.com;\r\n        charset     utf-8;\r\n\r\n        client_max_body_size 75M;   # adjust to taste\r\n\r\n        location /media  {\r\n            alias /path/to/media;  # your Django project's media files - amend as required\r\n        }\r\n\r\n        location /static {\r\n            alias /path/to/static; # your Django project's static files - amend as required\r\n        }   \r\n\r\n        location /chat {\r\n            proxy_pass          http://127.0.0.1:8004;\r\n            proxy_http_version  1.1;\r\n            proxy_set_header    Upgrade $http_upgrade;\r\n            proxy_set_header    Connection \"Upgrade\";\r\n        }\r\n\r\n        location / {\r\n            uwsgi_pass  svqa;\r\n            include     /path/to/uwsgi_params; # the uwsgi_params file you installed\r\n            proxy_http_version  1.1;\r\n            proxy_set_header    Upgrade $http_upgrade;\r\n            proxy_set_header    Connection \"Upgrade\";\r\n        }\r\n    }"}}
{"actor":{"display_login":"deshraj"}}