{"action":"opened","issue":{"url":"https://api.github.com/repos/eventlet/eventlet/issues/284","labels_url":"https://api.github.com/repos/eventlet/eventlet/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/eventlet/eventlet/issues/284/comments","events_url":"https://api.github.com/repos/eventlet/eventlet/issues/284/events","html_url":"https://github.com/eventlet/eventlet/issues/284","id":126323049,"number":284,"title":"Pipe Broken","user":{"login":"jackmullen2","id":11414035,"avatar_url":"https://avatars.githubusercontent.com/u/11414035?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmullen2","html_url":"https://github.com/jackmullen2","followers_url":"https://api.github.com/users/jackmullen2/followers","following_url":"https://api.github.com/users/jackmullen2/following{/other_user}","gists_url":"https://api.github.com/users/jackmullen2/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmullen2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmullen2/subscriptions","organizations_url":"https://api.github.com/users/jackmullen2/orgs","repos_url":"https://api.github.com/users/jackmullen2/repos","events_url":"https://api.github.com/users/jackmullen2/events{/privacy}","received_events_url":"https://api.github.com/users/jackmullen2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-13T02:08:16Z","updated_at":"2016-01-13T02:08:16Z","closed_at":null,"body":"I am using flask and eventlet as the server .. I set up flask to \"serve from directory\" with \"as_attachment=True\" -- here is the route \r\n@app.route('/static/media/<directory>/<filename>')\r\ndef download_file_media(directory,filename):\r\n    return send_from_directory('static/media/'+directory,\r\n                               filename, as_attachment=True)\r\n\r\nWhen a device .. like an iphone or computer using quicktime attempts to access a file ( a playable mp3 say) after a period of time I get an exception that is always repeatable :  (any help would be appreciated).. The flask implementation is also using flask-socketio and flask version is 1.0 \r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py\", line 477, in handle_one_response\r\n    write(b''.join(towrite))\r\n  File \"/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py\", line 426, in write\r\n    _writelines(towrite)\r\n  File \"/usr/lib/python2.7/socket.py\", line 334, in writelines\r\n    self.flush()\r\n  File \"/usr/lib/python2.7/socket.py\", line 303, in flush\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\n  File \"/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py\", line 376, in sendall\r\n    tail = self.send(data, flags)\r\n  File \"/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py\", line 359, in send\r\n    total_sent += fd.send(data[total_sent:], flags)\r\nerror: [Errno 32] Broken pipe\r\n\r\n\r\n"}}