通道断开问题 Broken pipe
Nginx 配置
    location / {
      proxy_pass http://localhost:8004/api/;
      client_max_body_size 100m;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      # 这是关键
      proxy_ignore_client_abort   on;
    }
如果没解决?
Exceptionhandler
if ("org.apache.catalina.connector.ClientAbortException".equals(ex.getClass().getName())) {
            return null;
}
        
            本文由 Clive 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为:
            2021/10/15 15:48