小白求助,gunicorn 部署 Flask 服务,gunicorn 的日志经常报 socket 的错误

2021-03-02 15:30:20 +08:00
 dafuyang

[2021-03-02 14:23:21 +0800] [22921] [ERROR] Socket error processing request. Traceback (most recent call last): File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 65, in handle util.reraise(*sys.exc_info()) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/util.py", line 625, in reraise raise value File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 48, in handle req = next(parser) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/parser.py", line 41, in next self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 186, in init super().init(cfg, unreader) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 53, in init unused = self.parse(self.unreader) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 235, in parse self.headers = self.parse_headers(data[:idx]) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 73, in parse_headers remote_addr = self.unreader.sock.getpeername() OSError: [Errno 107] Transport endpoint is not connected

但是业务又没影响,请问是什么问题呢?强迫症看着很不爽。。

939 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/757660

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX