{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/1210","repository_url":"https://api.github.com/repos/benoitc/gunicorn","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1210/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1210/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1210/events","html_url":"https://github.com/benoitc/gunicorn/issues/1210","id":134071067,"number":1210,"title":"'Response' object has no attribute 'status_code' in wsgi.py with websockets","user":{"login":"bclark8923","id":2468167,"avatar_url":"https://avatars.githubusercontent.com/u/2468167?v=3","gravatar_id":"","url":"https://api.github.com/users/bclark8923","html_url":"https://github.com/bclark8923","followers_url":"https://api.github.com/users/bclark8923/followers","following_url":"https://api.github.com/users/bclark8923/following{/other_user}","gists_url":"https://api.github.com/users/bclark8923/gists{/gist_id}","starred_url":"https://api.github.com/users/bclark8923/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bclark8923/subscriptions","organizations_url":"https://api.github.com/users/bclark8923/orgs","repos_url":"https://api.github.com/users/bclark8923/repos","events_url":"https://api.github.com/users/bclark8923/events{/privacy}","received_events_url":"https://api.github.com/users/bclark8923/received_events","type":"User","site_admin":false},"labels":[{"id":24999,"url":"https://api.github.com/repos/benoitc/gunicorn/labels/Discussion","name":"Discussion","color":"ed5fbb","default":false},{"id":24537,"url":"https://api.github.com/repos/benoitc/gunicorn/labels/Feedback%20Requested","name":"Feedback Requested","color":"ffb114","default":false},{"id":296184407,"url":"https://api.github.com/repos/benoitc/gunicorn/labels/Help%20Wanted","name":"Help Wanted","color":"02e10c","default":false},{"id":215797186,"url":"https://api.github.com/repos/benoitc/gunicorn/labels/Investigation","name":"Investigation","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-02-16T19:13:19Z","updated_at":"2016-11-19T01:08:22Z","closed_at":null,"body":"I start my app using\n\n`gunicorn --worker-class eventlet -w 1 server:app --bind=\"127.0.0.1:5000\"`\n\nAnd when using Flack-SocketIO for websockets I often get an error with Gunicorn not returning from a function properly\n\n```\n[2016-01-30 10:20:53 -0800] [7330] [ERROR] Error handling request\nTraceback (most recent call last):\n  File \"/Users/brianclark/Desktop/Projects/HDP/application/api/venv/lib/python2.7/site-packages/gunicorn/workers/async.py\", line 52, in handle\n    self.handle_request(listener_name, req, client, addr)\n  File \"/Users/brianclark/Desktop/Projects/HDP/application/api/venv/lib/python2.7/site-packages/gunicorn/workers/async.py\", line 114, in handle_request\n    resp.close()\n  File \"/Users/brianclark/Desktop/Projects/HDP/application/api/venv/lib/python2.7/site-packages/gunicorn/http/wsgi.py\", line 423, in close\n    self.send_headers()\n  File \"/Users/brianclark/Desktop/Projects/HDP/application/api/venv/lib/python2.7/site-packages/gunicorn/http/wsgi.py\", line 316, in send_headers\n    tosend = self.default_headers()\n  File \"/Users/brianclark/Desktop/Projects/HDP/application/api/venv/lib/python2.7/site-packages/gunicorn/http/wsgi.py\", line 297, in default_headers\n    elif self.should_close():\n  File \"/Users/brianclark/Desktop/Projects/HDP/application/api/venv/lib/python2.7/site-packages/gunicorn/http/wsgi.py\", line 230, in should_close\n    if self.status_code < 200 or self.status_code in (204, 304):\nAttributeError: 'Response' object has no attribute 'status_code'\n```\n\nAny advice on configurations I could use to fix this or is it a bug?\n"},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/261681235","html_url":"https://github.com/benoitc/gunicorn/issues/1210#issuecomment-261681235","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1210","id":261681235,"user":{"login":"Hum4n01d","id":17228477,"avatar_url":"https://avatars.githubusercontent.com/u/17228477?v=3","gravatar_id":"","url":"https://api.github.com/users/Hum4n01d","html_url":"https://github.com/Hum4n01d","followers_url":"https://api.github.com/users/Hum4n01d/followers","following_url":"https://api.github.com/users/Hum4n01d/following{/other_user}","gists_url":"https://api.github.com/users/Hum4n01d/gists{/gist_id}","starred_url":"https://api.github.com/users/Hum4n01d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hum4n01d/subscriptions","organizations_url":"https://api.github.com/users/Hum4n01d/orgs","repos_url":"https://api.github.com/users/Hum4n01d/repos","events_url":"https://api.github.com/users/Hum4n01d/events{/privacy}","received_events_url":"https://api.github.com/users/Hum4n01d/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T01:08:22Z","updated_at":"2016-11-19T01:08:22Z","body":"any updates?"}}
{"actor":{"display_login":"Hum4n01d"}}