java.io.IOException: Broken pipe

249 阅读1分钟

导出超时

java.lang.RuntimeException: org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : java.io.IOException: Broken pipe

nginx增加超时设置

  • proxy_connect_timeout 300s;
  • proxy_send_timeout 300s;
  • proxy_read_timeout 300s;

    location /server/ {
    proxy_connect_timeout 300s;
    proxy_send_timeout 300s;
    proxy_read_timeout 300s;
         proxy_pass http://172.17.0.1:8080/basin/ ;
             proxy_set_header Host $host; 
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		 client_max_body_size 50M;
                   }