V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
dafuyang
V2EX  ›  问与答

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

  •  
  •   dafuyang · 2021-03-02 15:30:20 +08:00 · 1035 次点击
    这是一个创建于 1347 天前的主题,其中的信息可能已经有所发展或是发生改变。

    [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

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

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2340 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:49 · PVG 23:49 · LAX 07:49 · JFK 10:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.