flask做服务器,前端播放本地视频直接报关于socket的error: [Errno 32] Broken pipe

发布于 09-02 19:29 字数 2193 浏览 25 评论 0

前端使用一个<video src="/static/css/test.mp4"></video>
在pc端显示一切正常,用手机端无法播放,查看服务器logo发现如下错误:

92.168.1.37 - - [25/May/2016 15:28:33] "GET /static/css/base/960p.mp4 HTTP/1.1" 200 -

Exception happened during processing of request from ('192.168.1.37', 58656)
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock

self.process_request(request, client_address)

File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process_request

self.finish_request(request, client_address)

File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request

self.RequestHandlerClass(request, client_address, self)

File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 657, in init

self.finish()

File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 716, in finish

self.wfile.close()

File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 283, in close

self.flush()

File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush

self._sock.sendall(view[write_offset:write_offset+buffer_size])

File "/Users/zhangdewei/workspace/Web/venv/lib/python2.7/site-packages/gevent/socket.py", line 460, in sendall

data_sent += self.send(_get_memory(data, data_sent), flags)

File "/Users/zhangdewei/workspace/Web/venv/lib/python2.7/site-packages/gevent/socket.py", line 437, in send

return sock.send(data, flags)

error: [Errno 32] Broken pipe

不知道什么问题,求各位帮助

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终止放荡2022-09-09 19:29:47

地址放出来,不然看不到问题所在

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文